Java Doc for Chunk.java in  » ERP-CRM-Financial » sakai » org » apache » commons » jrcs » diff » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.apache.commons.jrcs.diff 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jrcs.util.ToString
      org.apache.commons.jrcs.diff.Chunk

Chunk
public class Chunk extends org.apache.commons.jrcs.util.ToString (Code)
Holds a information about a parrt of the text involved in a differencing or patching operation.
version:
   $Id: Chunk.java 7756 2006-04-13 12:25:49Z ian@caret.cam.ac.uk $
author:
   Juanco Anez
See Also:   Diff
See Also:   Delta


Field Summary
protected  intanchor
    
protected  Listchunk
    
protected  intcount
    

Constructor Summary
public  Chunk(int pos, int count)
     Creates a chunk that doesn't copy the original text.
public  Chunk(Object[] iseq, int pos, int count)
     Creates a chunk and saves a copy the original chunk's text.
public  Chunk(Object[] iseq, int pos, int count, int offset)
     Creates a chunk that will be displaced in the resulting text, and saves a copy the original chunk's text.
public  Chunk(List iseq, int pos, int count)
     Creates a chunk and saves a copy the original chunk's text.
public  Chunk(List iseq, int pos, int count, int offset)
     Creates a chunk that will be displaced in the resulting text, and saves a copy the original chunk's text.

Method Summary
public  intanchor()
     Returns the anchor position of the chunk.
public  voidapplyAdd(int start, List target)
     Add the text of this chunk to the target at the given position.
public  voidapplyDelete(List target)
     Delete this chunk from he given text.
public  Listchunk()
     Returns the text saved for this chunk.
public  intfirst()
     Returns the index of the first line of the chunk.
public  intlast()
     Returns the index of the last line of the chunk.
public  StringrangeString()
     Provide a string representation of the numeric range of this chunk.
public  voidrangeString(StringBuffer s)
     Provide a string representation of the numeric range of this chunk.
public  voidrangeString(StringBuffer s, String separ)
     Provide a string representation of the numeric range of this chunk.
public  intrcsfrom()
     Returns the from index of the chunk in RCS terms.
public  intrcsto()
     Returns the to index of the chunk in RCS terms.
public  intsize()
     Returns the size of the chunk.
public static  Listslice(List seq, int pos, int count)
     Retreives the specified part from a List List .
Parameters:
  seq - the list to retreive a slice from.
Parameters:
  pos - the start position.
Parameters:
  count - the number of items in the slice.
public static  Listslice(Object[] seq, int pos, int count)
     Retrieves a slice from an Object Object array.
Parameters:
  seq - the list to retreive a slice from.
Parameters:
  pos - the start position.
Parameters:
  count - the number of items in the slice.
public  voidtoString(StringBuffer s)
     Provide a string image of the chunk using the an empty prefix and postfix.
public  StringBuffertoString(StringBuffer s, String prefix, String postfix)
     Provide a string image of the chunk using the given prefix and postfix.
public  booleanverify(List target)
     Verifies that this chunk's saved text matches the corresponding text in the given sequence.
Parameters:
  target - the sequence to verify against.

Field Detail
anchor
protected int anchor(Code)



chunk
protected List chunk(Code)



count
protected int count(Code)




Constructor Detail
Chunk
public Chunk(int pos, int count)(Code)
Creates a chunk that doesn't copy the original text.
Parameters:
  pos - the start position in the text.
Parameters:
  count - the size of the chunk.



Chunk
public Chunk(Object[] iseq, int pos, int count)(Code)
Creates a chunk and saves a copy the original chunk's text.
Parameters:
  iseq - the original text.
Parameters:
  pos - the start position in the text.
Parameters:
  count - the size of the chunk.



Chunk
public Chunk(Object[] iseq, int pos, int count, int offset)(Code)
Creates a chunk that will be displaced in the resulting text, and saves a copy the original chunk's text.
Parameters:
  iseq - the original text.
Parameters:
  pos - the start position in the text.
Parameters:
  count - the size of the chunk.
Parameters:
  offset - the position the chunk should have in the resulting text.



Chunk
public Chunk(List iseq, int pos, int count)(Code)
Creates a chunk and saves a copy the original chunk's text.
Parameters:
  iseq - the original text.
Parameters:
  pos - the start position in the text.
Parameters:
  count - the size of the chunk.



Chunk
public Chunk(List iseq, int pos, int count, int offset)(Code)
Creates a chunk that will be displaced in the resulting text, and saves a copy the original chunk's text.
Parameters:
  iseq - the original text.
Parameters:
  pos - the start position in the text.
Parameters:
  count - the size of the chunk.
Parameters:
  offset - the position the chunk should have in the resulting text.




Method Detail
anchor
public int anchor()(Code)
Returns the anchor position of the chunk. the anchor position.



applyAdd
public void applyAdd(int start, List target)(Code)
Add the text of this chunk to the target at the given position.
Parameters:
  start - where to add the text.
Parameters:
  target - the text to add to.



applyDelete
public void applyDelete(List target)(Code)
Delete this chunk from he given text.
Parameters:
  target - the text to delete from.



chunk
public List chunk()(Code)
Returns the text saved for this chunk. the text.



first
public int first()(Code)
Returns the index of the first line of the chunk.



last
public int last()(Code)
Returns the index of the last line of the chunk.



rangeString
public String rangeString()(Code)
Provide a string representation of the numeric range of this chunk.



rangeString
public void rangeString(StringBuffer s)(Code)
Provide a string representation of the numeric range of this chunk.
Parameters:
  s - where the string representation should be appended.



rangeString
public void rangeString(StringBuffer s, String separ)(Code)
Provide a string representation of the numeric range of this chunk.
Parameters:
  s - where the string representation should be appended.
Parameters:
  separ - what to use as line separator.



rcsfrom
public int rcsfrom()(Code)
Returns the from index of the chunk in RCS terms.



rcsto
public int rcsto()(Code)
Returns the to index of the chunk in RCS terms.



size
public int size()(Code)
Returns the size of the chunk. the size.



slice
public static List slice(List seq, int pos, int count)(Code)
Retreives the specified part from a List List .
Parameters:
  seq - the list to retreive a slice from.
Parameters:
  pos - the start position.
Parameters:
  count - the number of items in the slice. a List List containing the specified items.



slice
public static List slice(Object[] seq, int pos, int count)(Code)
Retrieves a slice from an Object Object array.
Parameters:
  seq - the list to retreive a slice from.
Parameters:
  pos - the start position.
Parameters:
  count - the number of items in the slice. a List List containing the specified items.



toString
public void toString(StringBuffer s)(Code)
Provide a string image of the chunk using the an empty prefix and postfix.



toString
public StringBuffer toString(StringBuffer s, String prefix, String postfix)(Code)
Provide a string image of the chunk using the given prefix and postfix.
Parameters:
  s - where the string image should be appended.
Parameters:
  prefix - the text thatshould prefix each line.
Parameters:
  postfix - the text that should end each line.



verify
public boolean verify(List target)(Code)
Verifies that this chunk's saved text matches the corresponding text in the given sequence.
Parameters:
  target - the sequence to verify against. true if the texts match.



Methods inherited from org.apache.commons.jrcs.util.ToString
public static String arrayToString(Object[] o)(Code)(Java Doc)
public static String arrayToString(Object[] o, String EOL)(Code)(Java Doc)
public static String[] stringToArray(String value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void toString(StringBuffer s)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.