public interface XDIReader extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getFileExtension()
Returns the file extension of this XDIReader, e.g.
|
String |
getFormat()
Returns the format this XDIReader can read, e.g.
|
MimeType |
getMimeType()
Returns the mime type this XDIReader can read, e.g.
|
InputStream |
read(Graph graph,
InputStream stream)
Reads an XDI graph from a byte stream.
|
Reader |
read(Graph graph,
Reader reader)
Reads an XDI graph from a character stream.
|
boolean |
supportsFileExtension(String fileExtension)
Checks if a given file extension is supported.
|
boolean |
supportsFormat(String format)
Checks if a given format is supported.
|
boolean |
supportsMimeType(MimeType mimeType)
Checks if a given mime type is supported.
|
Reader read(Graph graph, Reader reader) throws IOException, Xdi2ParseException
graph
- A graph that will hold the read data.reader
- A character stream from which to read.IOException
Xdi2ParseException
InputStream read(Graph graph, InputStream stream) throws IOException, Xdi2ParseException
graph
- A graph that will hold the read data.stream
- A byte stream from which to read.IOException
Xdi2ParseException
String getFormat()
String getFileExtension()
MimeType getMimeType()
boolean supportsFormat(String format)
boolean supportsFileExtension(String fileExtension)
boolean supportsMimeType(MimeType mimeType)
Copyright © 2017. All rights reserved.