public class TemporalStringDocument extends Object implements TemporalDocument
TemporalDocument implementation backed by a String whose
contents are used for the document text.| Constructor and Description |
|---|
TemporalStringDocument(String docText,
long timeStamp)
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 |
long |
timeStamp()
Returns the time at which this document was created.
|
public TemporalStringDocument(String docText, long timeStamp)
Document using the provided string as the document
textdocText - the document texttimeStamp - the time stamp in unix time associated with the documentpublic BufferedReader reader()
BufferedReader for this document's textpublic long timeStamp()
timeStamp in interface TemporalDocumentCopyright © 2012. All Rights Reserved.