Java Doc for Archive.java in  » ERP-CRM-Financial » sakai » org » apache » commons » jrcs » rcs » 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.rcs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jrcs.util.ToString
      org.apache.commons.jrcs.rcs.Archive

Archive
public class Archive extends ToString (Code)
Handling of RCS/CVS style version control archives.

JRCS is a library that knows how to manipulate the archive files produced by the RCS and CVS version control systems. JRCS is not intended to replace neither tool. JRCS was written to be able create archive analysis tools that can do things like identify hot spots in the source code, measure the contributions by each developer, or assess how bugs make it in.

The reasons why JRCS has the ability do do check-ins and save archives is API symmetry, and to simplify the writing of unit tests.

CAVEAT UTILITOR: Do not make modifications to your archives with JRCS. There needs to be an important amount of additional testing before it's safe to do that.

The org.apache.commons.jrcs.rcs rcs package implements the archive handling functionality. The entry point to the library is class org.apache.commons.jrcs.rcs.Archive Archive .

The org.apache.commons.jrcs.diff diff package implements the differencing engine that JRCS uses. The engine has the power of Unix diff, is simple to understand, and can be used independently of the archive handling functionality. The entry point to the differencing engine is class org.apache.commons.jrcs.diff.Diff Diff .

Within this library, the word text means a unit of information subject to version control. The word revision means a particular version of a text. Each revision has a version number associated to it. Version numbers are dot-separated lists of numbers. Version numbers with an odd number of dots indicate revisions, while those with an even number of dots (including zero dots) designate branches.

Revisions of a text are represented as Object[] because the diff engine is capable of handling more than plain text. In fact, arrays of any type that implements java.lang.Object.hashCode hashCode() and java.lang.Object.equals equals() correctly can be subject to differencing and version control using this library.

To create an empty archive use:

 Archive archive = new Archive();
 

To read an archive from the file system, use:

 Archive archive = new Archive("/path/to/archive,v");
 

You can also initialize archives from streams.

To retreive a revision from an archive use:

 String versionNumber = "1.2";
 Object[] text = archive.getRevision(versionNumber);
 

You can also retreive revisions in such a way that each item is annotated with the version number of the revision in which it was last changed or added. To retrieve annotated text use:

 String versionNumber = "1.2";
Line Line[]  text = archive.getRevision(versionNumber);
 for(int i = 0; i < text.length(); i++)
 System.out.println(text[i].revision.version);
 

This class is NOT thread safe.


See Also:   org.apache.commons.jrcs.diff
version:
   $Id: Archive.java 2967 2005-10-26 10:52:33Z ian@caret.cam.ac.uk $
author:
   Juanco Anez


Field Summary
final public static  StringRCS_NEWLINE
    
protected  Versionbranch
    
protected  Stringcomment
    
protected  Stringdesc
    
protected  Stringexpand
    
protected  Stringfilename
    
protected  TrunkNodehead
    
protected  Setlocked
    
protected  Mapnodes
    
protected  Phrasesphrases
    
protected  booleanstrictLocking
    
protected  Mapsymbols
    
protected  Setusers
    

Constructor Summary
public  Archive(Object[] text, String desc)
     Creates a new archive and sets the text of the initial revision.
public  Archive(Object[] text, String desc, String vernum)
     Creates a new archive with the specified initial version number and sets the text of the initial revision. The initial revision must be of the form "n.m" (i.e.
public  Archive(Object[] text, String desc, Version vernum)
     Creates a new archive with the specified initial version number and sets the text of the initial revision. The initial revision must be of the form "n.m" (i.e.
public  Archive(String fname, InputStream input)
     Load an archive from an input stream.
public  Archive(String path)
     Load an archive from an a file given by name.
 Archive()
     Create an unitialized Archive.

Method Summary
public  voidaddLock(String user, Version vernum)
     Add a lock over a revison.
public  voidaddPhrase(String key, Collection values)
     Add a new phrase to the archive.
public  VersionaddRevision(Object[] text, String log)
     Add the given revision to the active branch on the archive.
Parameters:
  text - the text of the revision.
Parameters:
  log - the log: a short note explaining what the revision is.
public  VersionaddRevision(Object[] text, String vernum, String log)
     Add the given revision to the the archive using the given version number. The version number may be partial.
public  VersionaddRevision(Object[] text, Version vernum, String log)
     Add the given revision to the the archive using the given version number. The version number may be partial.
public  voidaddSymbol(String sym, Version vernum)
     Tag a given version with a symbol.
public  voidaddUser(String name)
     Add a user name to the list of archive users.
public  Node[]changeLog()
     Return the list of nodes between the head revision and the root revision.
public  Node[]changeLog(Version latest)
     Return the list of nodes between the the given revision and the root revision.
public  Node[]changeLog(Version latest, Version earliest)
     Return the list of nodes between the the given two revisions.
public  Object[]doKeywords(Object[] text, Node rev)
     Returns the given text with values added to CVS-style keywords.
Parameters:
  text - the text on which substitutions will be applied.
Parameters:
  rev - a node that identifies the revision to which thegiven text belongs.
public  NodefindNode(Version vernum)
     Return the node with the version number that matches the one provided. The given version number may be partial.
Parameters:
  vernum - the version number to match.
public  StringgetDesc()
     Returns the description associated with the archive.
public  StringgetLog(Version version)
     Returns the log message associated with the given revision.
Parameters:
  version - - the version to get the log message for the log message for the version.
public  StringgetLog(String vernum)
     Returns the log message associated with the given revision.
Parameters:
  version - - the version to get the log message for the log message for the version.
protected  NodegetNode(Version vernum)
    
public  Object[]getRevision()
     Get the text belonging to the head revision.
public  Object[]getRevision(boolean annotate)
     Get the text belonging to the head revision.
public  Object[]getRevision(String vernum)
     Get the text belonging to the revision identified by the given version number. Partial version numbers are OK.
Parameters:
  vernum - the version number.
public  Object[]getRevision(String vernum, boolean annotate)
     Get the text belonging to the revision identified by the given version number.
public  Object[]getRevision(Version vernum)
     Get the text belonging to the revision identified by the given version number. Partial version numbers are OK.
Parameters:
  vernum - the version number.
public  Object[]getRevision(Version vernum, boolean annotate)
     Get the text belonging to the revision identified by the given version number.
protected  PathgetRevisionPath(Version vernum)
     Returns the path from the head node to the node identified by the given version number.
Parameters:
  vernum - The version number that identifies the final node.Partial version numbers are OK.
public  VersiongetRevisionVersion(Version vernum)
     Return the actual revision number of the node identified by the given version number.
Parameters:
  vernum - The version number that identifies the node.Partial version numbers are OK.
public  VersiongetRevisionVersion(String vernum)
     Return the actual revision number of the node identified by the given version number.
Parameters:
  vernum - The version number that identifies the node.Partial version numbers are OK.
public  VersiongetRevisionVersion()
     Return the actual revision number of the active revision.
public  MapgetSymbols()
     Returns a Map of the symbols (tags) associated with each revision.
protected  BranchNodenewBranchNode(Version vernum)
    
protected  NodenewNode(Version vernum)
    
protected  NodenewNode(Version vernum, Node prev)
    
protected  TrunkNodenewTrunkNode(Version vernum)
    
public static  StringquoteString(String s)
     Quote a string. RCS strings are quoted using @.
protected static  Object[]removeKeywords(Object[] text)
     Returns the given text removing the values of any CVS-style keywords.
Parameters:
  text - the text on which substitutions will be applied.
public  voidsave(OutputStream output)
     Save the archive to the provided stream.
public  voidsave(String path)
     Save the archive to a file and the the Archives filename accordingly.
public  voidsetBranch(String v)
     Set the active branch to the one identified by the given version number.
public  voidsetBranch(Version vernum)
     Set the active branch to the one identified by the given version number.
public  voidsetComment(String value)
     Set the archive's comment.
public  voidsetDesc(String value)
     Set the archives description.
public  voidsetExpand(String value)
     Set the keyword expansion flag for the archive.
Parameters:
  value - The keyword expansion value.
public  voidsetFileName(String path)
    
protected  voidsetHead(Version vernum)
     Add a head node with the given version number.
public  voidsetStrictLocking(boolean value)
     Set the strict locking flag for the archive.
public  byte[]toByteArray()
     Return a text image of the archive as a char array.
public  char[]toCharArray()
     Return a text image of the archive as a char array.
public  voidtoString(StringBuffer s)
     Place a string image of the archive in the given StringBuffer.
public  StringtoString(String EOL)
     Return a text image of the archive.
Parameters:
  EOL - The token to use as line separator.
public  voidtoString(StringBuffer s, String EOL)
     Append a text image of the archive to the given buffer using the given token as line separator.
public static  StringunquoteString(String s)
     Unquote a string quoted in RCS style.
Parameters:
  s - the quoted string.
public static  StringunquoteString(String s, boolean removeExtremes)
     Unquote a string quoted in RCS style.
Parameters:
  s - the quoted string.
Parameters:
  removeExtremes - Determines if the enclosing @ quotesshould be removed.

Field Detail
RCS_NEWLINE
final public static String RCS_NEWLINE(Code)



branch
protected Version branch(Code)



comment
protected String comment(Code)



desc
protected String desc(Code)



expand
protected String expand(Code)



filename
protected String filename(Code)



head
protected TrunkNode head(Code)



locked
protected Set locked(Code)



nodes
protected Map nodes(Code)



phrases
protected Phrases phrases(Code)



strictLocking
protected boolean strictLocking(Code)



symbols
protected Map symbols(Code)



users
protected Set users(Code)




Constructor Detail
Archive
public Archive(Object[] text, String desc)(Code)
Creates a new archive and sets the text of the initial revision.
Parameters:
  text - The text of the initial revision.
Parameters:
  desc - The archives description (not the log message).



Archive
public Archive(Object[] text, String desc, String vernum)(Code)
Creates a new archive with the specified initial version number and sets the text of the initial revision. The initial revision must be of the form "n.m" (i.e. a trunk revision).
Parameters:
  text - The text of the initial revision.
Parameters:
  desc - The archives description (not the log message).
Parameters:
  vernum - The initial revision number.



Archive
public Archive(Object[] text, String desc, Version vernum)(Code)
Creates a new archive with the specified initial version number and sets the text of the initial revision. The initial revision must be of the form "n.m" (i.e. a trunk revision).
Parameters:
  text - The text of the initial revision.
Parameters:
  desc - The archives description (not the log message).
Parameters:
  vernum - The initial revision number.



Archive
public Archive(String fname, InputStream input) throws ParseException(Code)
Load an archive from an input stream. Parses the archive given by the input stream, and gives it the provided name.
Parameters:
  fname - The name to give to the archive.
Parameters:
  input - Where to read the archive from



Archive
public Archive(String path) throws ParseException, FileNotFoundException(Code)
Load an archive from an a file given by name.
Parameters:
  path - The path to the file wher the archive resides.



Archive
Archive()(Code)
Create an unitialized Archive. Used internally by the ArchiveParser.
See Also:   ArchiveParser




Method Detail
addLock
public void addLock(String user, Version vernum) throws InvalidVersionNumberException, NodeNotFoundException(Code)
Add a lock over a revison.
Parameters:
  user - The user that locks the revision.
Parameters:
  vernum - The version number of the revision to lock.



addPhrase
public void addPhrase(String key, Collection values)(Code)
Add a new phrase to the archive. Phrases are used to provide for extensions of the archive format. Each phrase has a key and a list of values associated with it.
Parameters:
  key - The phrases key.
Parameters:
  values - The values under the key.



addRevision
public Version addRevision(Object[] text, String log) throws InvalidFileFormatException, DiffException, InvalidVersionNumberException, NodeNotFoundException(Code)
Add the given revision to the active branch on the archive.
Parameters:
  text - the text of the revision.
Parameters:
  log - the log: a short note explaining what the revision is. The version number assigned to the revision.



addRevision
public Version addRevision(Object[] text, String vernum, String log) throws InvalidFileFormatException, DiffException, InvalidVersionNumberException, NodeNotFoundException(Code)
Add the given revision to the the archive using the given version number. The version number may be partial. If so, the rules used by RCS/CVS are used to decide which branch the revision should be added to. A new branch may be created if required.
Parameters:
  text - the text of the revision.
Parameters:
  vernum - is the version number wanted, or, if partial, identifiesthe target branch.
Parameters:
  log - the log: a short note explaining what the revision is. The version number assigned to the revision.



addRevision
public Version addRevision(Object[] text, Version vernum, String log) throws InvalidFileFormatException, DiffException, NodeNotFoundException, InvalidVersionNumberException(Code)
Add the given revision to the the archive using the given version number. The version number may be partial. If so, the rules used by RCS/CVS are used to decide which branch the revision should be added to. A new branch may be created if required.
Parameters:
  text - the text of the revision.
Parameters:
  vernum - is the version number wanted, or, if partial, identifiesthe target branch.
Parameters:
  log - the log: a short note explaining what the revision is. The version number assigned to the revision.



addSymbol
public void addSymbol(String sym, Version vernum) throws InvalidVersionNumberException(Code)
Tag a given version with a symbol.
Parameters:
  sym - The tag.
Parameters:
  vernum - The version to tag.



addUser
public void addUser(String name)(Code)
Add a user name to the list of archive users.
Parameters:
  name - The user name.



changeLog
public Node[] changeLog()(Code)
Return the list of nodes between the head revision and the root revision.



changeLog
public Node[] changeLog(Version latest)(Code)
Return the list of nodes between the the given revision and the root revision.
Parameters:
  latest - the version of the last revision in the log.



changeLog
public Node[] changeLog(Version latest, Version earliest)(Code)
Return the list of nodes between the the given two revisions.
Parameters:
  latest - the version of the last revision in the log.
Parameters:
  earliest - the version of the first revision in the log.



doKeywords
public Object[] doKeywords(Object[] text, Node rev) throws PatchFailedException(Code)
Returns the given text with values added to CVS-style keywords.
Parameters:
  text - the text on which substitutions will be applied.
Parameters:
  rev - a node that identifies the revision to which thegiven text belongs. the text with substitutions performed.



findNode
public Node findNode(Version vernum)(Code)
Return the node with the version number that matches the one provided. The given version number may be partial.
Parameters:
  vernum - the version number to match. the node, or null if no match found.



getDesc
public String getDesc()(Code)
Returns the description associated with the archive. the description



getLog
public String getLog(Version version) throws NodeNotFoundException(Code)
Returns the log message associated with the given revision.
Parameters:
  version - - the version to get the log message for the log message for the version. - if the version does not exist for the archive.



getLog
public String getLog(String vernum) throws InvalidVersionNumberException, NodeNotFoundException(Code)
Returns the log message associated with the given revision.
Parameters:
  version - - the version to get the log message for the log message for the version. - if the version does not exist for the archive.



getNode
protected Node getNode(Version vernum) throws InvalidVersionNumberException, NodeNotFoundException(Code)



getRevision
public Object[] getRevision() throws InvalidFileFormatException, PatchFailedException, NodeNotFoundException(Code)
Get the text belonging to the head revision. The text of the head revision
throws:
  NodeNotFoundException - if the revision could not be found.
throws:
  InvalidFileFormatException - if any of the deltas cannot be parsed.
throws:
  PatchFailedException - if any of the deltas could not be applied



getRevision
public Object[] getRevision(boolean annotate) throws InvalidFileFormatException, PatchFailedException, NodeNotFoundException(Code)
Get the text belonging to the head revision. Set annotate to true to have the lines be annotated with the number of the revision in which they were added or changed.
Parameters:
  annotate - set to true to have the text be annotated The text of the head revision
throws:
  NodeNotFoundException - if the revision could not be found.
throws:
  InvalidFileFormatException - if any of the deltas cannot be parsed.
throws:
  PatchFailedException - if any of the deltas could not be appliedto produce a new revision.



getRevision
public Object[] getRevision(String vernum) throws InvalidFileFormatException, PatchFailedException, InvalidVersionNumberException, NodeNotFoundException(Code)
Get the text belonging to the revision identified by the given version number. Partial version numbers are OK.
Parameters:
  vernum - the version number. The text of the revision if found.
throws:
  InvalidVersionNumberException - if the version number cannot be parsed.
throws:
  NodeNotFoundException - if the revision could not be found.
throws:
  InvalidFileFormatException - if any of the deltas cannot be parsed.
throws:
  PatchFailedException - if any of the deltas could not be applied



getRevision
public Object[] getRevision(String vernum, boolean annotate) throws InvalidVersionNumberException, NodeNotFoundException, InvalidFileFormatException, PatchFailedException(Code)
Get the text belonging to the revision identified by the given version number. Partial version numbers are OK. Set annotate to true to have the lines be annotated with the number of the revision in which they were added or changed.
Parameters:
  vernum - the version number.
Parameters:
  annotate - set to true to have the text be annotated The text of the revision if found.
throws:
  InvalidVersionNumberException - if the version number cannot be parsed.
throws:
  NodeNotFoundException - if the revision could not be found.
throws:
  InvalidFileFormatException - if any of the deltas cannot be parsed.
throws:
  PatchFailedException - if any of the deltas could not be applied



getRevision
public Object[] getRevision(Version vernum) throws InvalidFileFormatException, PatchFailedException, NodeNotFoundException(Code)
Get the text belonging to the revision identified by the given version number. Partial version numbers are OK.
Parameters:
  vernum - the version number. The text of the revision if found.
throws:
  NodeNotFoundException - if the revision could not be found.
throws:
  InvalidFileFormatException - if any of the deltas cannot be parsed.
throws:
  PatchFailedException - if any of the deltas could not be applied



getRevision
public Object[] getRevision(Version vernum, boolean annotate) throws InvalidFileFormatException, PatchFailedException, NodeNotFoundException(Code)
Get the text belonging to the revision identified by the given version number. Partial version numbers are OK. Set annotate to true to have the lines be annotated with the number of the revision in which they were added or changed.
Parameters:
  vernum - the version number.
Parameters:
  annotate - set to true to have the text be annotated The text of the revision if found.
throws:
  NodeNotFoundException - if the revision could not be found.
throws:
  InvalidFileFormatException - if any of the deltas cannot be parsed.
throws:
  PatchFailedException - if any of the deltas could not be applied



getRevisionPath
protected Path getRevisionPath(Version vernum)(Code)
Returns the path from the head node to the node identified by the given version number.
Parameters:
  vernum - The version number that identifies the final node.Partial version numbers are OK. The path to the node, or null if not found.



getRevisionVersion
public Version getRevisionVersion(Version vernum)(Code)
Return the actual revision number of the node identified by the given version number.
Parameters:
  vernum - The version number that identifies the node.Partial version numbers are OK. The actual version, or null if a node is not found.



getRevisionVersion
public Version getRevisionVersion(String vernum)(Code)
Return the actual revision number of the node identified by the given version number.
Parameters:
  vernum - The version number that identifies the node.Partial version numbers are OK. The actual version, or null if a node is not found.



getRevisionVersion
public Version getRevisionVersion()(Code)
Return the actual revision number of the active revision. The revision will be the tip of the branch identified as active, or the head revision of the trunk if no branch is set as active. The version number of the active revision, or null ifthere is none.



getSymbols
public Map getSymbols()(Code)
Returns a Map of the symbols (tags) associated with each revision. The symbols are the keys and the revision numbers are the values. A map of symbol/revision number pairs.



newBranchNode
protected BranchNode newBranchNode(Version vernum) throws InvalidVersionNumberException, NodeNotFoundException(Code)



newNode
protected Node newNode(Version vernum)(Code)



newNode
protected Node newNode(Version vernum, Node prev) throws InvalidVersionNumberException, NodeNotFoundException(Code)



newTrunkNode
protected TrunkNode newTrunkNode(Version vernum) throws InvalidVersionNumberException, NodeNotFoundException(Code)



quoteString
public static String quoteString(String s)(Code)
Quote a string. RCS strings are quoted using @. Any @ in the original string is doubled to @@.
Parameters:
  s - the string to quote. The string quoted in RCS style.



removeKeywords
protected static Object[] removeKeywords(Object[] text) throws PatchFailedException(Code)
Returns the given text removing the values of any CVS-style keywords.
Parameters:
  text - the text on which substitutions will be applied. the text with substitutions performed.



save
public void save(OutputStream output) throws IOException(Code)
Save the archive to the provided stream.
Parameters:
  output - The stream to save the archive to.



save
public void save(String path) throws IOException(Code)
Save the archive to a file and the the Archives filename accordingly.
Parameters:
  path - The file's path.



setBranch
public void setBranch(String v) throws InvalidBranchVersionNumberException(Code)
Set the active branch to the one identified by the given version number. Incomplete version numbers of the form "1" or "2.1.3" are accepted.
Parameters:
  v - The version number.



setBranch
public void setBranch(Version vernum) throws InvalidBranchVersionNumberException(Code)
Set the active branch to the one identified by the given version number.
Parameters:
  vernum - The version number.



setComment
public void setComment(String value)(Code)
Set the archive's comment.
Parameters:
  value - The comment.



setDesc
public void setDesc(String value)(Code)
Set the archives description.
Parameters:
  value - The descriptions text.



setExpand
public void setExpand(String value)(Code)
Set the keyword expansion flag for the archive.
Parameters:
  value - The keyword expansion value. It should be one of:
  • kv (Default) Substitue keyword and value.
  • kvl Substitute keyword, value, and locker (if any).
  • k Substitute keyword only.
  • o Preserve original string.
  • b Like o, but mark file as binary.
  • v Substitue value only.



setFileName
public void setFileName(String path)(Code)
Set the name of the file for this archive
Parameters:
  path - The full path name.



setHead
protected void setHead(Version vernum) throws InvalidVersionNumberException(Code)
Add a head node with the given version number.
Parameters:
  vernum - The version number to use.



setStrictLocking
public void setStrictLocking(boolean value)(Code)
Set the strict locking flag for the archive.
Parameters:
  value - Indicates if strict locking should be on or off.



toByteArray
public byte[] toByteArray()(Code)
Return a text image of the archive as a char array. This is useful for writing the archive to a file without having the characters be interpreted by the writer. The archive image.



toCharArray
public char[] toCharArray()(Code)
Return a text image of the archive as a char array. This is useful for writing the archive to a file without having the characters be interpreted by the writer. The archive image.



toString
public void toString(StringBuffer s)(Code)
Place a string image of the archive in the given StringBuffer.
Parameters:
  s - Where the image shoul go.



toString
public String toString(String EOL)(Code)
Return a text image of the archive.
Parameters:
  EOL - The token to use as line separator. The text image of the archive.



toString
public void toString(StringBuffer s, String EOL)(Code)
Append a text image of the archive to the given buffer using the given token as line separator.
Parameters:
  s - where to append the image.
Parameters:
  EOL - the line separator.



unquoteString
public static String unquoteString(String s)(Code)
Unquote a string quoted in RCS style.
Parameters:
  s - the quoted string. s the string unquoted.



unquoteString
public static String unquoteString(String s, boolean removeExtremes)(Code)
Unquote a string quoted in RCS style.
Parameters:
  s - the quoted string.
Parameters:
  removeExtremes - Determines if the enclosing @ quotesshould be removed. s the string unquoted.



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.