|
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.server.source.TextLineWriter
This class is used to append lines into a char array, using a specified end of line char array (typically linefeed or carriage return / linefeed. The lines passed into this class should not include the end of line characters. If the end of line characters are included, these characters will be doubled in the final output.
Constructor Summary | |
TextLineWriter()
Default constructor. |
|
TextLineWriter(char[] endOfLine)
Constructs a TextLineWriter with the passed-in end of line characters using the default buffer size. |
|
TextLineWriter(int size)
Constructs a TextLineWriter with the passed-in starting buffer size and the default end of line characters. It is important to use an accurate starting buffer size. |
|
TextLineWriter(int size,
char[] endOfLine)
Constructs a TextLineWriter with the passed-in starting buffer size and end of line characters. |
Method Summary | |
char[] |
toCharArray()
Writes the contents of this TextLineWriter to a char array. |
void |
write(TextLineIterator oIterator)
Writes the entire contents of the TextLineIterator to this TextLineWriter, beginning with the current line in the iterator. |
void |
writeLine(char[] line)
Adds a line to this TextLineWriter. |
void |
writeLine(java.lang.String sLine)
Adds a line to this TextLineWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextLineWriter()
public TextLineWriter(int size)
size
- - starting size of the buffer (number of characters
expected in the final output.public TextLineWriter(char[] endOfLine)
endOfLine
- -- a character array containing the end of line characters
to use for the output of this TextLineWriter.public TextLineWriter(int size, char[] endOfLine)
size
- - starting size of the buffer (number of characters
expected in the final output.endOfLine
- -- a character array containing the end of line characters
to use for the output of this TextLineWriter.Method Detail |
public void writeLine(char[] line)
writeLine
in interface TextLineAdder
line
- -- a line of text as a char array.public void writeLine(java.lang.String sLine)
writeLine
in interface TextLineAdder
line
- -- a line of text as a String.public void write(TextLineIterator oIterator)
oIterator
- -- a TextLineIterator.public char[] toCharArray()
|
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 |