public class SWCFileSpecification extends Object implements IBinaryFileSpecification
| Constructor and Description |
|---|
SWCFileSpecification(String path,
ISWCFileEntry fileEntry) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream() |
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 SWCFileSpecification(String path, ISWCFileEntry fileEntry)
path - Filename contained within the manifest.fileEntry - ISWCFileEntry within the SWC. May be null if
the file does not exist within the SWC. FileNotFound exception
will be thrown if this IFileSpecification is readpublic 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.public InputStream createInputStream() throws IOException
createInputStream in interface IBinaryFileSpecificationIOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.