Package com.floragunn.codova.documents
Class DocReader.DocReaderBuilder
- java.lang.Object
-
- com.floragunn.codova.documents.DocReader.DocReaderBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocReader.DocReaderBuilderfallbackForEmptyDocuments(Object emptyDocumentFallback)Objectread(byte[] bytes)Objectread(File file)Objectread(InputStream in)Objectread(Reader in)Objectread(String string)Map<String,Object>readObject(byte[] bytes)Map<String,Object>readObject(File file)Map<String,Object>readObject(InputStream in)Map<String,Object>readObject(Reader in)Map<String,Object>readObject(String string)DocReader.DocReaderBuildersplitAttributesAtDots()DocReader.DocReaderBuildersplitAttributesAtDotsStartingAtDepth(int handleDottedAttributeNamesAsPathsFromDepth)
-
-
-
Method Detail
-
read
public Object read(Reader in) throws DocumentParseException, IOException
- Throws:
DocumentParseExceptionIOException
-
read
public Object read(String string) throws DocumentParseException
- Throws:
DocumentParseException
-
read
public Object read(byte[] bytes) throws DocumentParseException
- Throws:
DocumentParseException
-
read
public Object read(File file) throws DocumentParseException, FileNotFoundException, IOException
-
read
public Object read(InputStream in) throws DocumentParseException, IOException
- Throws:
DocumentParseExceptionIOException
-
readObject
public Map<String,Object> readObject(Reader in) throws DocumentParseException, IOException, UnexpectedDocumentStructureException
-
readObject
public Map<String,Object> readObject(InputStream in) throws DocumentParseException, IOException, UnexpectedDocumentStructureException
-
readObject
public Map<String,Object> readObject(String string) throws DocumentParseException, UnexpectedDocumentStructureException
-
readObject
public Map<String,Object> readObject(byte[] bytes) throws DocumentParseException, UnexpectedDocumentStructureException
-
readObject
public Map<String,Object> readObject(File file) throws UnexpectedDocumentStructureException, DocumentParseException, FileNotFoundException, IOException
-
splitAttributesAtDots
public DocReader.DocReaderBuilder splitAttributesAtDots()
-
splitAttributesAtDotsStartingAtDepth
public DocReader.DocReaderBuilder splitAttributesAtDotsStartingAtDepth(int handleDottedAttributeNamesAsPathsFromDepth)
-
fallbackForEmptyDocuments
public DocReader.DocReaderBuilder fallbackForEmptyDocuments(Object emptyDocumentFallback)
-
-