|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1XmlEncodeHelper
public class Asn1XmlEncodeHelper
Constructor Summary | |
---|---|
Asn1XmlEncodeHelper(Asn1XmlEncoder encoder)
|
Method Summary | |
---|---|
void |
encodeByte(byte value)
This method is used to encode a single byte to the output stream. |
void |
encodeEmptyElement(java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an XML empty element tag |
void |
encodeEndElement(java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an XML end element tag |
void |
encodeNamespace(Asn1XmlNamespace namespace)
Encode the given namespace on the next start element tag. |
void |
encodeNSAttrs()
This method encodes XML namespace attributes in the form 'xmlns[:prefix]="uri"'. |
void |
encodeStartElement(java.lang.String elemName,
java.lang.String nsPrefix,
boolean terminate)
This method encodes an XML start element tag. |
Asn1XmlNamespaceCtxt |
getNamespaceCtxt()
This method gets the current namespace context. |
void |
setMixedContent(boolean value)
This method sets the mixed content flag which indicates that this buffer will be used to encode mixed content. |
void |
setNamespaceCtxt(Asn1XmlNamespaceCtxt nsCtxt,
boolean force)
This method sets the namespace context to the given value. |
void |
setTermStart(boolean value)
This method sets the start element termination required flag. |
void |
setXMLState(int value)
This method sets the XML state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Asn1XmlEncodeHelper(Asn1XmlEncoder encoder)
Method Detail |
---|
public void encodeByte(byte value) throws java.io.IOException
value
- The byte value to copy
java.io.IOException
- Any exception thrown by the underlying OutputStream.public void encodeStartElement(java.lang.String elemName, java.lang.String nsPrefix, boolean terminate) throws Asn1Exception, java.io.IOException
elemName
- The name of element.nsPrefix
- The namespace prefix of element.
Asn1Exception
- Thrown, if operation is failed.
java.io.IOException
public void encodeNamespace(Asn1XmlNamespace namespace)
public void encodeEndElement(java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
elemName
- The name of element.nsPrefix
- Namespace prefix.
java.io.IOException
Asn1Exception
public void encodeEmptyElement(java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
elemName
- The name of element.nsPrefix
- The namespace prefix of element.
java.io.IOException
Asn1Exception
public void encodeNSAttrs() throws Asn1Exception, java.io.IOException
Asn1Exception
java.io.IOException
public Asn1XmlNamespaceCtxt getNamespaceCtxt()
public void setMixedContent(boolean value)
value
- Boolean valuepublic void setNamespaceCtxt(Asn1XmlNamespaceCtxt nsCtxt, boolean force)
nsCtxt
- Reference to namespace context object.force
- Flag to indicate value should be set regardless
of current state. If false, table will only
be set if reference is currently null.public void setTermStart(boolean value)
value
- Boolean valuepublic void setXMLState(int value)
value
- XML state value from Asn1XmlEncoder.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |