|
||||||||||
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 org.apache.shale.test.mock.MockPrintWriter
public class MockPrintWriter
Mock implementation of PrintWriter
.
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
MockPrintWriter(CharArrayWriter writer)
Return a default instance. |
Method Summary | |
---|---|
char[] |
content()
Return the content that has been written to this writer. |
void |
reset()
Reset this output stream so that it appears no content has been written. |
int |
size()
Return the number of characters that have been written to this writer. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, 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, toString, wait, wait, wait |
Constructor Detail |
---|
public MockPrintWriter(CharArrayWriter writer)
Return a default instance.
writer
- Temporary buffer storage for us to useMethod Detail |
---|
public char[] content()
Return the content that has been written to this writer.
public void reset()
Reset this output stream so that it appears no content has been written.
public int size()
Return the number of characters that have been written to this writer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |