com.ximpleware
Class ElementFragmentNs

java.lang.Object
  extended by com.ximpleware.ElementFragmentNs

public class ElementFragmentNs
extends java.lang.Object

ElementFragmentNs is class representing namespace compensated elementFragment its constructor is protected, only intended to be called by getElementFragmentNs().


Method Summary
 long getOffsetLen()
          Get the long encoding the len and offset of uncompensated element fragment
 int getSize()
          getSize gets the fragment with byte copying
 byte[] toBytes()
          Return a byte array of an element with namespace compensation in its orginal encoding format
 void writeToOutputStream(java.io.OutputStream ost)
          Write ns compensated fragments (bytes in original encoding format) to outputstream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOffsetLen

public final long getOffsetLen()
Get the long encoding the len and offset of uncompensated element fragment

Returns:

getSize

public final int getSize()
getSize gets the fragment with byte copying

Returns:

toBytes

public final byte[] toBytes()
Return a byte array of an element with namespace compensation in its orginal encoding format

Returns:

writeToOutputStream

public final void writeToOutputStream(java.io.OutputStream ost)
                               throws java.io.IOException
Write ns compensated fragments (bytes in original encoding format) to outputstream

Parameters:
ost -
Throws:
java.io.IOException