com.ximpleware
Class ElementFragment

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

public class ElementFragment
extends Object


Constructor Summary
ElementFragment(VTDNav vn1, long l1, FastIntBuffer fib1, int len)
           
 
Method Summary
 long getOffsetLen()
           
 int getSize()
          getSize gets the fragment with ns compensation
 byte[] toBytes()
          Return a byte array with namespace compensation witht the orginal encoding format
 int writeToByteArray(byte[] ba, int offset)
           
 void writeToOutputStream(OutputStream ost)
          Write ns compensated fragments (bytes in original encoding format) to outputstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementFragment

public ElementFragment(VTDNav vn1,
                       long l1,
                       FastIntBuffer fib1,
                       int len)
Method Detail

toBytes

public final byte[] toBytes()
Return a byte array with namespace compensation witht the orginal encoding format

Returns:

getSize

public final int getSize()
getSize gets the fragment with ns compensation

Returns:

writeToByteArray

public final int writeToByteArray(byte[] ba,
                                  int offset)

writeToOutputStream

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

Parameters:
ost -
Throws:
IOException

getOffsetLen

public final long getOffsetLen()
Returns:


Copyright © 2013. All Rights Reserved.