public class FileSpecification extends BaseFileSpecification implements IBinaryFileSpecification
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() |
getFileHandle, getLastModified, getPath, isOpenDocument, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastModified, getPath, isOpenDocument
public FileSpecification(String path)
path
- The path of the file.public int hashCode()
hashCode
in class BaseFileSpecification
public boolean equals(Object obj)
equals
in class BaseFileSpecification
public Reader createReader() throws FileNotFoundException
IFileSpecification
createReader
in interface IFileSpecification
FileNotFoundException
public InputStream createInputStream() throws FileNotFoundException
createInputStream
in interface IBinaryFileSpecification
FileNotFoundException
Copyright © 2016 The Apache Software Foundation. All rights reserved.