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 DocumentSource
IOException
public long getContentLength()
getContentLength
in interface DocumentSource
public String getDocumentURI()
getDocumentURI
in interface DocumentSource
public String getContentType()
getContentType
in interface DocumentSource
public boolean isLocal()
isLocal
in interface DocumentSource
public String readStream() throws IOException
IOException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.