|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter gnu.lists.PrintConsumer gnu.mapping.OutPort gnu.mapping.CharArrayOutPort
public class CharArrayOutPort
Similar to CharArrayWriter.
Field Summary |
---|
Fields inherited from class gnu.mapping.OutPort |
---|
bout, errLocation, objectFormat, outLocation, printReadable, unregisterRef |
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
CharArrayOutPort()
|
Method Summary | |
---|---|
void |
close()
Do nothing. |
protected boolean |
closeOnExit()
No point in registering this port with a WriterManager. |
int |
length()
|
void |
reset()
|
void |
setLength(int length)
|
char[] |
toCharArray()
Returns the written data as a freshly copied char array. |
java.lang.String |
toString()
Returns the written data as a new String . |
java.lang.String |
toSubString(int beginIndex)
Returns a substring of the written data as a new String . |
java.lang.String |
toSubString(int beginIndex,
int endIndex)
Returns a substring of the written data as a new String . |
void |
writeTo(Consumer out)
|
void |
writeTo(int start,
int count,
Consumer out)
|
Methods inherited from class gnu.mapping.OutPort |
---|
clearBuffer, closeLogFile, closeThis, echo, endAttribute, endElement, endLogicalBlock, errDefault, freshLine, getColumnNumber, isWordChar, openFile, outDefault, print, print, print, print, print, print, print, runCleanups, setColumnNumber, setErrDefault, setIndentation, setLogFile, setOutDefault, startAttribute, startElement, startLogicalBlock, startLogicalBlock, writeBreak, writeBreakFill, writeBreakLinear, writeSpaceFill, writeSpaceLinear, writeWordEnd, writeWordStart |
Methods inherited from class gnu.lists.PrintConsumer |
---|
append, append, append, endDocument, endNumber, ignoring, startDocument, startNumber, write, writeBoolean, writeDouble, writeFloat, writeInt, writeLong, writeObject |
Methods inherited from class java.io.PrintWriter |
---|
checkError, clearError, flush, format, format, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gnu.lists.Consumer |
---|
write, write, write |
Constructor Detail |
---|
public CharArrayOutPort()
Method Detail |
---|
public int length()
public void setLength(int length)
public void reset()
public char[] toCharArray()
char
array.
public void close()
close
in interface java.io.Closeable
close
in class OutPort
protected boolean closeOnExit()
closeOnExit
in class OutPort
public java.lang.String toString()
String
.
toString
in class java.lang.Object
public java.lang.String toSubString(int beginIndex, int endIndex)
String
.
Equivalent to toString().substring(beginIndex, endIndex)
but more efficient.
public java.lang.String toSubString(int beginIndex)
String
.
Equivalent to toString().substring(beginIndex)
but more efficient.
public void writeTo(Consumer out)
public void writeTo(int start, int count, Consumer out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |