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()
IFileSpecification
getPath
in interface IFileSpecification
public Reader createReader() throws FileNotFoundException
IFileSpecification
createReader
in interface IFileSpecification
FileNotFoundException
public long getLastModified()
IFileSpecification
getLastModified
in interface IFileSpecification
public boolean isOpenDocument()
isOpenDocument
in interface IFileSpecification
IFileSpecification.createReader()
method returns a reader that reads the live
document buffer.Copyright © 2016 The Apache Software Foundation. All rights reserved.