public interface Parser extends Handler
| Modifier and Type | Method and Description |
|---|---|
DXFDocument |
getDocument()
Gets the parsed DXFDocument after parsing.
|
java.lang.String |
getName()
Gets the name of the parser.
|
void |
parse(java.io.InputStream input,
java.lang.String encoding)
Parse the given inputstream
|
void |
parse(java.lang.String file)
Parse the given file.
|
void |
parse(java.lang.String file,
java.lang.String encoding)
Parse the given file with the specific encoding.
|
boolean |
supportedExtension(java.lang.String extension) |
releaseDXFDocument, setDXFDocumentvoid parse(java.lang.String file)
throws ParseException
file - the file to parseParseExceptionvoid parse(java.lang.String file,
java.lang.String encoding)
throws ParseException
file - encoding - ParseExceptionvoid parse(java.io.InputStream input,
java.lang.String encoding)
throws ParseException
input - encoding - ParseExceptionDXFDocument getDocument()
boolean supportedExtension(java.lang.String extension)
extension - java.lang.String getName()