public class StringDocument extends Object implements Document
Document implementation backed by a String whose contents
are used for the document text.| Constructor and Description |
|---|
StringDocument(String docText)
Constructs a
Document using the provided string as the document
text |
| Modifier and Type | Method and Description |
|---|---|
BufferedReader |
reader()
Returns the
BufferedReader for this document's text |
String |
toString()
Returns the entire document
|
public StringDocument(String docText)
Document using the provided string as the document
textdocText - the document textpublic BufferedReader reader()
BufferedReader for this document's text This method may be repeatedly called to re-read the
contents of the document.Copyright © 2012. All Rights Reserved.