public class FileSpecification extends BaseFileSpecification implements IBinaryFileSpecification
| Modifier and Type | Class and Description |
|---|---|
static class |
FileSpecification.NoCRLFInputStream |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
useCRLFFilter |
path| Constructor and Description |
|---|
FileSpecification(String path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream() |
Reader |
createReader()
Creates a new Reader for the contents of file.
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
setLastModified(long fileDate)
Set the last modified timestamp of the file
|
getFileHandle, getLastModified, getPath, isOpenDocument, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLastModified, getPath, isOpenDocumentpublic FileSpecification(String path)
path - The path of the file.public int hashCode()
hashCode in class BaseFileSpecificationpublic boolean equals(Object obj)
equals in class BaseFileSpecificationpublic Reader createReader() throws FileNotFoundException
IFileSpecificationcreateReader in interface IFileSpecificationFileNotFoundExceptionpublic InputStream createInputStream() throws FileNotFoundException
createInputStream in interface IBinaryFileSpecificationFileNotFoundExceptionpublic void setLastModified(long fileDate)
IFileSpecificationsetLastModified in interface IFileSpecificationfileDate - the last modified timestampCopyright © 2023 The Apache Software Foundation. All rights reserved.