|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.server.source.TextLineWriter
Field Summary | |
private static int |
DEFAULT_BUFFER_START_SIZE
Deprecated. |
private char[] |
mcaEndOfLine
Deprecated. |
private char[] |
mcaText
Deprecated. |
private int |
miIndex
Deprecated. |
Constructor Summary | |
TextLineWriter()
Deprecated. Default constructor. |
|
TextLineWriter(char[] endOfLine)
Deprecated. Constructs a TextLineWriter with the passed-in end of line characters using the default buffer size. |
|
TextLineWriter(int size)
Deprecated. 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)
Deprecated. Constructs a TextLineWriter with the passed-in starting buffer size and end of line characters. |
Method Summary | |
private void |
redimCharArray()
Deprecated. Resizes the buffer for this TextLineWriter. Avoid calling this method if possible. |
char[] |
toCharArray()
Deprecated. Writes the contents of this TextLineWriter to a char array. |
void |
write(TextLineIterator oIterator)
Deprecated. Writes the entire contents of the TextLineIterator to this TextLineWriter, beginning with the current line in the iterator. |
void |
writeLine(char[] line)
Deprecated. Adds a line to this TextLineWriter. |
void |
writeLine(java.lang.String sLine)
Deprecated. Adds a line to this TextLineWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private char[] mcaText
private int miIndex
private char[] mcaEndOfLine
private static final int DEFAULT_BUFFER_START_SIZE
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
public void write(TextLineIterator oIterator)
oIterator
- -- a TextLineIterator.public char[] toCharArray()
private void redimCharArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |