|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
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(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.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(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(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.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 contentOffset,
int contentLen)
Update token with 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 |
Constructors in com.ximpleware that throw ModifyException | |
---|---|
XMLModifier(VTDNav masterDocument)
Constructor for XMLModifier that takes VTDNav object as the master document |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |