|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.resources.serialization.xml.XMLSerializer
public class XMLSerializer
Field Summary | |
---|---|
protected java.lang.Class |
parser_class
|
protected java.lang.String |
parser_name
|
static java.lang.String |
PARSER_P1
|
static java.lang.String |
PARSER_P2
|
static java.lang.String |
PARSER_P3
|
Fields inherited from interface org.w3c.tools.resources.serialization.xml.JigXML |
---|
ARRAY_TAG, ATTRIBUTE_TAG, CHILD_TAG, CHILDREN_TAG, CLASS_ATTR, DESCR_TAG, dtd, FLAG_ATTR, iARRAY_TAG, iATTRIBUTE_TAG, iCHILD_TAG, iCHILDREN_TAG, iCLASS_ATTR, iDESCR_TAG, idtd, iFLAG_ATTR, iIMPLEMENTS_TAG, iINHERIT_TAG, iJXML_TAG, iLENGTH_ATTR, IMPLEMENTS_TAG, iNAME_ATTR, INHERIT_TAG, ins, iNULL, iRESARRAY_TAG, iRESOURCE_TAG, iVALUE_TAG, iversion, JXML_TAG, LENGTH_ATTR, NAME_ATTR, ns, NULL, RESARRAY_TAG, RESOURCE_TAG, VALUE_TAG, version |
Constructor Summary | |
---|---|
XMLSerializer()
|
Method Summary | |
---|---|
protected org.xml.sax.Parser |
getParser()
|
AttributeHolder[] |
readAttributeHolders(java.io.Reader reader)
Read the attribute holders using the given reader. |
LookupTable[] |
readAttributes(java.io.Reader reader,
java.lang.String[] attributes)
Load only some attributes |
ResourceDescription[] |
readResourceDescriptions(java.io.Reader reader)
Read the resource descriptions using the given reader. |
Resource[] |
readResources(java.io.Reader reader)
Read the resources using the given reader. |
void |
writeResourceDescriptions(Resource[] descr,
java.io.Writer writer)
Write the resource descriptions using the given writer. |
void |
writeResourceDescriptions(ResourceDescription[] descr,
java.io.Writer writer)
Write the resource descriptions using the given writer. |
void |
writeResources(AttributeHolder[] holders,
java.io.Writer writer)
Write the resources using the given writer. |
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_P1
public static final java.lang.String PARSER_P2
public static final java.lang.String PARSER_P3
protected java.lang.Class parser_class
protected java.lang.String parser_name
Constructor Detail |
---|
public XMLSerializer()
Method Detail |
---|
public void writeResourceDescriptions(ResourceDescription[] descr, java.io.Writer writer) throws java.io.IOException, SerializationException
writeResourceDescriptions
in interface Serializer
descr
- the resource descriptions arraywriter
- the writer
java.io.IOException
SerializationException
public void writeResourceDescriptions(Resource[] descr, java.io.Writer writer) throws java.io.IOException, SerializationException
writeResourceDescriptions
in interface Serializer
descr
- the resource arraywriter
- the writer
java.io.IOException
SerializationException
public void writeResources(AttributeHolder[] holders, java.io.Writer writer) throws java.io.IOException, SerializationException
writeResources
in interface Serializer
descr
- the resource arraywriter
- the writer
java.io.IOException
SerializationException
protected org.xml.sax.Parser getParser() throws SerializationException
SerializationException
public ResourceDescription[] readResourceDescriptions(java.io.Reader reader) throws java.io.IOException, SerializationException
readResourceDescriptions
in interface Serializer
writer
- the reader
java.io.IOException
SerializationException
public Resource[] readResources(java.io.Reader reader) throws java.io.IOException, SerializationException
readResources
in interface Serializer
writer
- the reader
java.io.IOException
SerializationException
public AttributeHolder[] readAttributeHolders(java.io.Reader reader) throws java.io.IOException, SerializationException
readAttributeHolders
in interface Serializer
writer
- the reader
java.io.IOException
SerializationException
public LookupTable[] readAttributes(java.io.Reader reader, java.lang.String[] attributes) throws java.io.IOException, SerializationException
readAttributes
in interface Serializer
attributes
- the attribute names array.
java.io.IOException
SerializationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |