public class GafObjectsBuilder extends Object
GafDocument
a gaf file. By default it read the whole
gaf file and builds the GAFDocument.Constructor and Description |
---|
GafObjectsBuilder() |
GafObjectsBuilder(int splitSize) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(LineFilter<GAFParser> filter)
Add a filter to object builder.
|
GafDocument |
buildDocument(File gafFilePath) |
GafDocument |
buildDocument(Reader reader,
String docId,
String path) |
GafDocument |
buildDocument(String gafFile) |
GafDocument |
buildDocument(String fileName,
String docId,
String path) |
void |
dispose() |
GafDocument |
getNextSplitDocument()
When this variable reaches the splitSize count, the algorithm in the
getNextSplitDocument() method stops calling next method of the GAFParser
and returns the GafDocument object build with the number of rows |
GAFParser |
getParser() |
int |
getSplitSize() |
boolean |
isDocumentSplitted() |
public GafObjectsBuilder()
public GafObjectsBuilder(int splitSize)
public int getSplitSize()
public GAFParser getParser()
public void addFilter(LineFilter<GAFParser> filter)
filter
- public GafDocument buildDocument(Reader reader, String docId, String path) throws IOException
IOException
public GafDocument buildDocument(String fileName, String docId, String path) throws IOException, URISyntaxException
IOException
URISyntaxException
public GafDocument getNextSplitDocument() throws IOException
getNextSplitDocument()
method stops calling next method of the GAFParser
and returns the GafDocument
object build with the number of rowsIOException
public boolean isDocumentSplitted()
public GafDocument buildDocument(File gafFilePath) throws IOException
IOException
public GafDocument buildDocument(String gafFile) throws IOException, URISyntaxException
IOException
URISyntaxException
public void dispose()
Copyright © 2010–2015. All rights reserved.