|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.TextFileUtil
Utility class of static methods for manipulating Text Files.
Method Summary | |
static void |
convertTextFileAsFileForStorage(java.io.File file)
|
static byte[] |
convertTextFileForRetreival(byte[] file,
int requestedEOL)
Converts a text file as stored in the server (as a serialized TextLineIterator in byte[] form) and converts it to a straight text file using the requested end of line characters. |
static byte[] |
convertTextFileForStorage(byte[] file)
Converts a text file (in byte array form) into the proper format for storage and returns it as an serialized object in a byte array. |
static void |
convertTextFileToProperFormat(FileNode ndFile,
NodeLibrary library)
Converts the entire version history of a text file previously saved to the new text file storage format. |
static byte[] |
convertTextLineIteratorToByteArray(TextLineIteratorOutput iterator,
char[] caEOL)
Converts TextLineIterator to an array of bytes, which includes the full text file, constructed using the caEOL as the end of line characters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void convertTextFileAsFileForStorage(java.io.File file) throws TextFileException, FileAccessException
public static byte[] convertTextFileForStorage(byte[] file) throws TextFileException
public static byte[] convertTextFileForRetreival(byte[] file, int requestedEOL) throws TextFileException, SourceJammerVersionException
public static void convertTextFileToProperFormat(FileNode ndFile, NodeLibrary library) throws TextFileException
public static byte[] convertTextLineIteratorToByteArray(TextLineIteratorOutput iterator, char[] caEOL) throws java.io.IOException
|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |