public class ElementFragmentNs
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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(java.io.OutputStream ost)
Write ns compensated fragments (bytes in original encoding format) to outputstream
|
void |
writeToOutputStream(java.io.OutputStream ost,
int dest_encoding)
Write the transcode byte representation of an ns-compensated
element fragment to the output stream
|
public final long getOffsetLen()
public final int getSize()
public final int getSize(int dest_encoding) throws TranscodeException
dest_encoding
- TranscodeException
public final byte[] toBytes()
public final byte[] toBytes(int dest_encoding) throws TranscodeException
encoding
- TranscodeException
public final void writeToOutputStream(java.io.OutputStream ost) throws java.io.IOException
ost
- java.io.IOException
public final void writeToOutputStream(java.io.OutputStream ost, int dest_encoding) throws java.io.IOException, TranscodeException
ost
- dest_encoding
- java.io.IOException
TranscodeException