Package | Description |
---|---|
com.ximpleware |
Modifier and Type | Method and Description |
---|---|
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(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
|
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(java.io.OutputStream ost,
int dest_encoding)
Write the transcode byte representation of an ns-compensated
element fragment to the output stream
|