|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IXMLStream
Provides access to members that control an in-memory XML stream.
The IXmlStream interface provides seven methods to use for serialization. The LoadFromString method loads data saved as a string from memory while LoadFromFile method loads data saved as a file e.g. file path\foo.xml. The LoadFromBytes method loads data saved as from a UTF-8 byte array, while SaveToString method saves object as a string to memory. The SaveToFile method saves object stream as a file e.g. foo.xml. The SaveToBytes saves object stream as UTF-8 byte array, while Reset method resets the stream to the beginning.
| Method Summary | |
|---|---|
void |
loadFromBytes(byte[] bytes)
Loads from a UTF-8 byte array. |
void |
loadFromFile(String filePath)
Loads from a file path. |
void |
loadFromString(String xML)
Loads from a string. |
void |
reset()
Resets the stream to the beginning. |
byte[] |
saveToBytes()
Saves to a UTF-8 byte array. |
void |
saveToFile(String filePath)
Saves to a file path. |
String |
saveToString()
Saves to a string. |
| Method Detail |
|---|
void loadFromString(String xML)
throws IOException,
AutomationException
xML - The xML (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void loadFromFile(String filePath)
throws IOException,
AutomationException
filePath - The filePath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void loadFromBytes(byte[] bytes)
throws IOException,
AutomationException
bytes - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String saveToString()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void saveToFile(String filePath)
throws IOException,
AutomationException
filePath - The filePath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
byte[] saveToBytes()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void reset()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||