public class FileDocumentSource extends Object implements DocumentSource
DocumentSource.| Constructor and Description |
|---|
FileDocumentSource(File file) |
FileDocumentSource(File file,
String baseURI) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
String |
getContentType() |
String |
getDocumentURI() |
boolean |
isLocal() |
InputStream |
openInputStream() |
String |
readStream() |
public FileDocumentSource(File file)
public InputStream openInputStream() throws IOException
openInputStream in interface DocumentSourceIOExceptionpublic long getContentLength()
getContentLength in interface DocumentSourcepublic String getDocumentURI()
getDocumentURI in interface DocumentSourcepublic String getContentType()
getContentType in interface DocumentSourcepublic boolean isLocal()
isLocal in interface DocumentSourcepublic String readStream() throws IOException
IOExceptionCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.