public class FileInputSource extends VaultInputSource
File. The path of the
file is used as systemId.
Currently only getByteStream() is implemented.
| Constructor and Description |
|---|
FileInputSource(java.io.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
|
java.io.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.
|
public FileInputSource(java.io.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 java.io.InputStream getByteStream()
getByteStream in class org.xml.sax.InputSourceFileInputStream on the internal file.public long getContentLength()
getContentLength in class VaultInputSourcepublic long getLastModified()
getLastModified in class VaultInputSourcepublic void discard()
Copyright © 2010 - 2023 Adobe. All Rights Reserved