|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kabeja.parser.DXFParser
public class DXFParser
Field Summary | |
---|---|
protected DXFSectionHandler |
currentHandler
|
static java.lang.String |
DEFAULT_ENCODING
|
protected DXFDocument |
doc
|
static java.lang.String |
EXTENSION
|
protected DXFHandler |
filter
|
protected java.util.Hashtable |
handlers
|
static java.lang.String |
PARSER_NAME
|
protected java.util.List |
streamFilters
|
Constructor Summary | |
---|---|
DXFParser()
|
Method Summary | |
---|---|
void |
addDXFSectionHandler(DXFSectionHandler handler)
|
void |
addDXFStreamFilter(DXFStreamFilter filter)
|
void |
addHandler(Handler handler)
|
protected void |
buildFilterChain()
|
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. |
void |
parseGroup(int keyCode,
DXFValue value)
|
void |
releaseDXFDocument()
|
void |
removeDXFStreamFilter(DXFStreamFilter filter)
|
void |
setDXFDocument(DXFDocument doc)
|
boolean |
supportedExtension(java.lang.String extension)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARSER_NAME
public static final java.lang.String EXTENSION
public static final java.lang.String DEFAULT_ENCODING
protected DXFDocument doc
protected java.util.Hashtable handlers
protected DXFSectionHandler currentHandler
protected java.util.List streamFilters
protected DXFHandler filter
Constructor Detail |
---|
public DXFParser()
Method Detail |
---|
public void parse(java.lang.String file) throws ParseException
Parser
parse
in interface Parser
file
- the file to parse
ParseException
public void parse(java.lang.String file, java.lang.String encoding) throws ParseException
Parser
parse
in interface Parser
ParseException
public void parse(java.io.InputStream input, java.lang.String encoding) throws ParseException
Parser
parse
in interface Parser
ParseException
public void parseGroup(int keyCode, DXFValue value) throws ParseException
parseGroup
in interface DXFHandler
ParseException
public DXFDocument getDocument()
Parser
getDocument
in interface Parser
public void addDXFSectionHandler(DXFSectionHandler handler)
public void addHandler(Handler handler)
addHandler
in interface HandlerManager
public void releaseDXFDocument()
releaseDXFDocument
in interface Handler
public void setDXFDocument(DXFDocument doc)
setDXFDocument
in interface Handler
public boolean supportedExtension(java.lang.String extension)
supportedExtension
in interface Parser
public void addDXFStreamFilter(DXFStreamFilter filter)
public void removeDXFStreamFilter(DXFStreamFilter filter)
protected void buildFilterChain()
public java.lang.String getName()
Parser
getName
in interface Parser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |