public interface XDIWriter extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getFileExtension()
Returns the file extension of this XDIWriter, e.g.
|
String |
getFormat()
Returns the format this XDIWriter can write, e.g.
|
MimeType |
getMimeType()
Returns the mime type this XDIWriter can write, e.g.
|
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.
|
OutputStream |
write(ContextNode contextNode,
OutputStream stream)
Writes an XDI context node to a byte stream.
|
Writer |
write(ContextNode contextNode,
Writer writer)
Writes an XDI context node to a character stream.
|
OutputStream |
write(Graph graph,
OutputStream stream)
Writes an XDI graph to a byte stream.
|
Writer |
write(Graph graph,
Writer writer)
Writes an XDI graph to a character stream.
|
Writer write(Graph graph, Writer writer) throws IOException
graph
- A graph that will be written to the stream.writer
- The character stream to write to.IOException
OutputStream write(Graph graph, OutputStream stream) throws IOException
graph
- A graph that will be written to the stream.stream
- The byte stream to write to.IOException
Writer write(ContextNode contextNode, Writer writer) throws IOException
contextNode
- A context node that will be written to the stream.writer
- The character stream to write to.IOException
OutputStream write(ContextNode contextNode, OutputStream stream) throws IOException
graph
- A context node that will be written to the stream.stream
- The byte stream to write to.IOException
String getFormat()
String getFileExtension()
MimeType getMimeType()
boolean supportsFormat(String format)
boolean supportsFileExtension(String fileExtension)
boolean supportsMimeType(MimeType mimeType)
Copyright © 2017. All rights reserved.