
public class AutoReader extends AbstractXDIReader
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILE_EXTENSION |
static String |
FORMAT_NAME |
static String |
MIME_TYPE |
DEFAULT_CHARSET, parameters| Constructor and Description |
|---|
AutoReader(Properties parameters) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLastSuccessfulFormat() |
XDIReader |
getLastSuccessfulReader() |
protected void |
init() |
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.
|
getFileExtension, getFormat, getMimeType, supportsFileExtension, supportsFormat, supportsMimeTypepublic static final String FORMAT_NAME
public static final String MIME_TYPE
public static final String DEFAULT_FILE_EXTENSION
public AutoReader(Properties parameters)
protected void init()
init in class AbstractXDIReaderpublic Reader read(Graph graph, Reader reader) throws IOException, Xdi2ParseException
XDIReadergraph - A graph that will hold the read data.reader - A character stream from which to read.IOExceptionXdi2ParseExceptionpublic InputStream read(Graph graph, InputStream stream) throws IOException, Xdi2ParseException
XDIReaderread in interface XDIReaderread in class AbstractXDIReadergraph - A graph that will hold the read data.stream - A byte stream from which to read.IOExceptionXdi2ParseExceptionpublic XDIReader getLastSuccessfulReader()
public String getLastSuccessfulFormat()
Copyright © 2017. All rights reserved.