public class FileInputSource extends VaultInputSource
File. The path of the
file is used as systemId.
Currently only getByteStream() is implemented.
| Constructor and Description |
|---|
FileInputSource(File file)
Creates a new input source that is based on a file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
discard()
deletes the underlying file
|
InputStream |
getByteStream() |
long |
getContentLength()
Returns the content length of the underlying file.
|
long |
getLastModified()
Returns the last modified date of the underlying file.
|
void |
setLineSeparator(byte[] lineSeparator)
Sets the linefeed to use.
|
getCharacterStream, getEncoding, getPublicId, getSystemId, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemIdpublic FileInputSource(File file)
file - the file.public void setLineSeparator(byte[] lineSeparator)
null the output
stream of the file is wrapped by a LineInputStream with that
given line feedlineSeparator - the linefeed for textpublic InputStream getByteStream()
getByteStream in class InputSourceFileInputStream on the internal file.public long getContentLength()
getContentLength in class VaultInputSourcepublic long getLastModified()
getLastModified in class VaultInputSourcepublic void discard()
Copyright © 2010 - 2020 Adobe. All Rights Reserved