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()
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.public InputStream createInputStream() throws IOException
createInputStream
in interface IBinaryFileSpecification
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.