Uses of Class
com.ximpleware.TranscodeException

Packages that use TranscodeException
com.ximpleware   
com.ximpleware.transcode   
 

Uses of TranscodeException in com.ximpleware
 

Methods in com.ximpleware that throw TranscodeException
 int ElementFragmentNs.getSize(int dest_encoding)
          This method returns the size of the transcoded byte representation of the ns compensated element fragment
 int XMLModifier.getUpdatedDocumentSize()
          Compute the size of the updated XML document without composing it
 void XMLModifier.insertAfterElement(int src_encoding, byte[] b)
          Insert a byte array of given encoding into the master document transcoding is done underneath to ensure the correctness of output
 void XMLModifier.insertAfterElement(int src_encoding, byte[] b, int contentOffset, int contentLen)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded array of bytes of a segment of the byte array b after the element
 void XMLModifier.insertAfterElement(int src_encoding, byte[] b, long l1)
          This method will first call getCurrentIndex() to get the cursor index value then insert a segment of the byte array b (transcode into a byte array) after the element, l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertAfterElement(VTDNav vn, int contentOffset, int contentLen)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded array of bytes of a segment of the byte array b after the element the VTDNav object is the container of the XML document in byte array
 void XMLModifier.insertAfterElement(VTDNav vn, long l1)
          This method will first call getCurrentIndex() to get the cursor index value then insert a segment of the byte array b (contained in vn, and transcode into a byte array) after the element, l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertAfterHead(int src_encoding, byte[] b)
          This method will insert the transcoded representation of byte array b after the head of cursor element,
 void XMLModifier.insertAfterHead(int src_encoding, byte[] b, int offset, int length)
          This method will insert the transcoded representation of a segment of the byte array b after the head of cursor element,
 void XMLModifier.insertAfterHead(int src_encoding, byte[] b, long l)
          This method will insert the transcoded representation of a segment of the byte array b after the head of cursor element,
 void XMLModifier.insertAfterHead(VTDNav vn, int contentOffset, int contentLen)
          This method will insert a segment of the byte array b (contained in vn, and transcode into a byte array) after the head of cursor element,
 void XMLModifier.insertAfterHead(VTDNav vn, long l1)
          This method will insert a segment of the byte array b (contained in vn, and transcode into a byte array) after the head of cursor element,
 void XMLModifier.insertAttribute(int src_encoding, byte[] b)
          Insert the transcoded representation of a byte arry of an attribute after the starting tag This method will first call getCurrentIndex() to get the cursor index value if the index is of type "starting tag", then teh attribute is inserted after the starting tag
 void XMLModifier.insertBeforeElement(int src_encoding, byte[] b)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded representatin of the byte array b before the element
 void XMLModifier.insertBeforeElement(int src_encoding, byte[] b, int contentOffset, int contentLen)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded representation of a segment of the byte array b before the element
 void XMLModifier.insertBeforeElement(int src_encoding, byte[] b, long l1)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded representation of a segment of the byte array b before the element l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertBeforeElement(VTDNav vn, int contentOffset, int contentLen)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded representation of a segment of the byte array contained in vn before the element
 void XMLModifier.insertBeforeElement(VTDNav vn, long l)
          This method will first call getCurrentIndex() to get the cursor index value then insert the transcoded representation of a segment of the byte array contained in vn before the element l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertBeforeTail(int src_encoding, byte[] b)
          This method will insert the transcoded representation of byte array b right before the tail of cursor element,
 void XMLModifier.insertBeforeTail(int src_encoding, byte[] b, int offset, int length)
          This method will insert the transcoded representation of a segment of byte array b right before the tail of cursor element,
 void XMLModifier.insertBeforeTail(int src_encoding, byte[] b, long l)
          This method will insert the transcoded representation of a segment of the byte array before the tail of cursor element, l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertBeforeTail(VTDNav vn, int contentOffset, int contentLen)
          This method will insert a segment of the byte array (contained in vn, and transcode into a byte array) before the tail of cursor element,
 void XMLModifier.insertBeforeTail(VTDNav vn, long l1)
          This method will insert a segment of the byte array (contained in vn, and transcode into a byte array) before the tail of cursor element, l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.output(OutputStream os)
          This method applies the modification to the XML document and writes the output byte content accordingly to an outputStream Notice that output is not guaranteed to be well-formed
 void XMLModifier.output(String fileName)
          Generate the updated output XML document and write it into a file of given name
 VTDNav XMLModifier.outputAndReparse()
          outAndReparse writes updated XML content into a new byte array, then parse and return a new VTDNav object
 byte[] ElementFragmentNs.toBytes(int dest_encoding)
          Transcode the ElementFragmentNS object to a byte array according to the destination encoding format
 void XMLModifier.updateToken(int index, byte[] newContentBytes, int src_encoding)
          Update the token with the transcoded representation of given byte array content,
 void XMLModifier.updateToken(int index, byte[] newContentBytes, int contentOffset, int contentLen, int src_encoding)
          Update token with the transcoded representation of a segment of byte array (in terms of offset and length)
 void XMLModifier.updateToken(int index, VTDNav vn, int contentOffset, int contentLen)
          Update token with the transcoded representation of a segment of byte array contained in vn (in terms of offset and length)
 void ElementFragmentNs.writeToOutputStream(OutputStream ost, int dest_encoding)
          Write the transcode byte representation of an ns-compensated element fragment to the output stream
 

Uses of TranscodeException in com.ximpleware.transcode
 

Methods in com.ximpleware.transcode that throw TranscodeException
static long Transcoder.decode(byte[] input, int offset, int input_encoding)
           
static int Transcoder.encode(byte[] output, int offset, int ch, int output_encoding)
           
static void UTF8_Coder.encodeAndWrite(OutputStream os, int ch)
           
static void UTF16LE_Coder.encodeAndWrite(OutputStream os, int ch)
           
static void UTF16BE_Coder.encodeAndWrite(OutputStream os, int ch)
           
static void ISO8859_1Coder.encodeAndWrite(OutputStream os, int ch)
          Write the iso-8859-1 representation of ch into outputstrem
static void ASCII_Coder.encodeAndWrite(OutputStream os, int ch)
           
static void Transcoder.encodeAndWrite(OutputStream os, int ch, int output_encoding)
           
static int UTF8_Coder.getLen(int ch)
          Get the length (in UTF-8 representation) of the UCS char at the offset value
static int ISO8859_1Coder.getLen(int ch)
           
static int ASCII_Coder.getLen(int ch)
           
static int Transcoder.getLen(int ch, int output_encoding)
           
static int Transcoder.getOutLength(byte[] input, int offset, int length, int input_encoding, int output_encoding)
           
static byte[] Transcoder.transcode(byte[] input, int offset, int length, int input_encoding, int output_encoding)
           
static void Transcoder.transcodeAndFill(byte[] input, byte[] output, int offset, int length, int input_encoding, int output_encoding)
          Fill the byte array with transcoded characters
static int Transcoder.transcodeAndFill2(int initOutPosition, byte[] input, byte[] output, int offset, int length, int input_encoding, int output_encoding)
           
static void Transcoder.transcodeAndWrite(byte[] input, OutputStream os, int offset, int length, int input_encoding, int output_encoding)
           
 



Copyright © 2013. All Rights Reserved.