Uses of Class
com.ximpleware.ModifyException

Packages that use ModifyException
com.ximpleware   
 

Uses of ModifyException in com.ximpleware
 

Methods in com.ximpleware that throw ModifyException
 void XMLModifier.bind(VTDNav masterDocument)
          Attach master document to this instance of XMLModifier so all the operations occuring aftewards are based on this instance of VTDNav
 void XMLModifier.insertAfterElement(byte[] b)
          This method will first call getCurrentIndex() to get the cursor index value then insert the byte array b after the element
 void XMLModifier.insertAfterElement(byte[] b, int contentOffset, int contentLen)
          This method will first call getCurrentIndex() to get the cursor index value then insert a segment of the byte array b after the element
 void XMLModifier.insertAfterElement(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 after the element, l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertAfterElement(ElementFragmentNs ef)
          Insert a namespace compensated element after cursor element
 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(java.lang.String s)
          This method will first call getCurrentIndex() to get the cursor index value then insert the byte value of s after the element
 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(byte[] b)
          This method will insert byte array b after the head of cursor element,
 void XMLModifier.insertAfterHead(byte[] b, int offset, int len)
          This method will insert a segment of the byte array b after the head of cursor element,
 void XMLModifier.insertAfterHead(byte[] b, long l)
          This method will insert a segment of the byte array b after the head of cursor element
 void XMLModifier.insertAfterHead(ElementFragmentNs ef)
          This method will insert an ElementFragmentNs instance after the head of cursor element,
 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(java.lang.String s)
          This method will insert s' byte array representation of the string 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(byte[] b)
          Insert 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.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.insertAttribute(java.lang.String attr)
          Insert 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 the attribute is inserted after the starting tag
 void XMLModifier.insertBeforeElement(byte[] b)
          This method will first call getCurrentIndex() to get the cursor index value then insert the byte array b before the element
 void XMLModifier.insertBeforeElement(byte[] b, int contentOffset, int contentLen)
          This method will first call getCurrentIndex() to get the cursor index value then insert a segment of the byte array b before the element
 void XMLModifier.insertBeforeElement(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 before the element l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
 void XMLModifier.insertBeforeElement(ElementFragmentNs ef)
          Insert a namespace compensated fragment before the cursor element
 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(java.lang.String s)
          This method will first call getCurrentIndex() to get the cursor index value then insert the byte value of s before the element
 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.insertBytesAt(int offset, byte[] content)
          insert the byte content into XML
 void XMLModifier.insertBytesAt(int offset, byte[] content, int contentOffset, int contentLen)
          Insert a segment of the byte content into XML
 void XMLModifier.output(java.io.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(java.lang.String fileName)
          Generate the updated output XML document and write it into a file of given name
 void XMLModifier.remove()
          Removes content from the master XML document It first calls getCurrentIndex() if the result is a starting tag, then the entire element referred to by the starting tag is removed If the result is an attribute name or ns node, then the corresponding attribute name/value pair is removed If the token type is one of text, CDATA or commment, then the entire node, including the starting and ending delimiting text surrounding the content, is removed
 void XMLModifier.remove(long l)
          Remove a byte segment from XML.
 void XMLModifier.removeAttribute(int attrNameIndex)
          Remove an attribute name value pair from the master document.
 void XMLModifier.removeContent(int offset, int len)
          Remove a segment of byte content from master XML doc.
 void XMLModifier.removeToken(int i)
          Remove the token content.
 void XMLModifier.updateElementName(java.lang.String newElementName)
          Replace the cursor element's name with a new name
 void XMLModifier.updateToken(int index, byte[] newContentBytes)
          Update the token with the given byte array content,
 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)
          Update token with a segment of byte array (in terms of offset and length)
 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, java.lang.String newContent)
          Update the token with the given string value, notice that string will be converted into byte array according to the encoding of the master document
 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)
 

Constructors in com.ximpleware that throw ModifyException
XMLModifier(VTDNav masterDocument)
          Constructor for XMLModifier that takes VTDNav object as the master document