Interface Document
-
- All Known Subinterfaces:
MutableDocument
public interface Document
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URLgetOriginalLocation()Retrieves the original location of this document.List<SourceInfo>getSourceInfo()Retrieves information pertaining to the document(s) represented by this document.StringgetSystemId()Retrieves the resource identifier for the document.InputStreamnewInputStream()Creates a newInputStreamthat can be used to read theDocument.
-
-
-
Method Detail
-
getSystemId
String getSystemId()
Retrieves the resource identifier for the document.- Returns:
- the system identifier
-
newInputStream
InputStream newInputStream()
Creates a newInputStreamthat can be used to read theDocument. Streams created by this method must be closed using theInputStream.close()method.- Returns:
- a new input stream for reading the document
-
getSourceInfo
List<SourceInfo> getSourceInfo()
Retrieves information pertaining to the document(s) represented by this document.- Returns:
- a list of source records
-
getOriginalLocation
URL getOriginalLocation()
Retrieves the original location of this document.- Returns:
- a URI representing the original location of the document
-
-