public class StringFileSpecification extends Object implements IFileSpecification
IFileSpecification implementation from a file path and text string.| Constructor and Description |
|---|
StringFileSpecification(String content) |
StringFileSpecification(String name,
String content) |
StringFileSpecification(String name,
String content,
long lastModified) |
| Modifier and Type | Method and Description |
|---|---|
Reader |
createReader()
Creates a new Reader for the contents of file.
|
long |
getLastModified()
Get the last modified timestamp of the file
|
String |
getPath()
Returns the path of the file.
|
boolean |
isOpenDocument() |
public StringFileSpecification(String name, String content, long lastModified)
public StringFileSpecification(String content)
public String getPath()
IFileSpecificationgetPath in interface IFileSpecificationpublic Reader createReader() throws FileNotFoundException
IFileSpecificationcreateReader in interface IFileSpecificationFileNotFoundExceptionpublic long getLastModified()
IFileSpecificationgetLastModified in interface IFileSpecificationpublic boolean isOpenDocument()
isOpenDocument in interface IFileSpecificationIFileSpecification.createReader() method returns a reader that reads the live
document buffer.Copyright © 2016 The Apache Software Foundation. All rights reserved.