|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ximpleware.ElementFragmentNs
public class ElementFragmentNs
ElementFragmentNs represents a name-space compensated element fragment
| Constructor Summary | |
|---|---|
protected |
ElementFragmentNs(VTDNav vn1,
long l1,
FastIntBuffer fib1,
int len)
|
| Method Summary | |
|---|---|
long |
getOffsetLen()
Get the long encoding the len and offset of uncompensated element fragment |
int |
getSize()
getSize gets the byte length of ns compensated fragment in its source encoding format |
int |
getSize(int dest_encoding)
This method returns the size of the transcoded byte representation of the ns compensated element fragment |
byte[] |
toBytes()
Return a byte array of an element with namespace compensation in its orginal encoding format |
byte[] |
toBytes(int dest_encoding)
Transcode the ElementFragmentNS object to a byte array according to the destination encoding format |
void |
writeToOutputStream(OutputStream ost)
Write ns compensated fragments (bytes in original encoding format) to outputstream |
void |
writeToOutputStream(OutputStream ost,
int dest_encoding)
Write the transcode byte representation of an ns-compensated element fragment to the output stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ElementFragmentNs(VTDNav vn1,
long l1,
FastIntBuffer fib1,
int len)
vn1 - l1 - fib1 - len - | Method Detail |
|---|
public final byte[] toBytes(int dest_encoding)
throws TranscodeException
encoding -
TranscodeExceptionpublic final byte[] toBytes()
public final int getSize()
public final int getSize(int dest_encoding)
throws TranscodeException
dest_encoding -
TranscodeException
public final void writeToOutputStream(OutputStream ost)
throws IOException
ost -
IOException
public final void writeToOutputStream(OutputStream ost,
int dest_encoding)
throws IOException,
TranscodeException
ost - dest_encoding -
IOException
TranscodeExceptionpublic final long getOffsetLen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||