| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.system.XMLStream
public class XMLStream
An in-memory XML stream.
Use the XMLStream coclass when you wish to provide access to members that control an in-memory XML stream. XMLStream is a wrapper on a memory blob stream and would be useful when documents are small. XMLWriter and XMLReader should be used with XMLStream in order to write and read the stream.
See the IXMLStream interface for more on getting information about streaming of objects.
IXMLStream, 
IXMLWriter, 
IXMLReader, 
IXMLSerialize, 
Serialized Form| Constructor Summary | |
|---|---|
| XMLStream()Constructs a XMLStream using ArcGIS Engine. | |
| XMLStream(Object obj)Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.  XMLStream theXMLStream = (XMLStream) obj; | |
| Method Summary | |
|---|---|
|  void | commit(int grfCommitFlags)commit | 
|  boolean | equals(Object o)Compare this object with another | 
|  void | esri_clone(IStream[] ppstm)esri_clone | 
| static String | getClsid()getClsid. | 
|  int | hashCode()the hashcode for this object | 
|  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 | lockRegion(_ULARGE_INTEGER libOffset,
           _ULARGE_INTEGER cb,
           int dwLockType)lockRegion | 
|  void | remoteCopyTo(IStream pstm,
             _ULARGE_INTEGER cb,
             _ULARGE_INTEGER[] pcbRead,
             _ULARGE_INTEGER[] pcbWritten)remoteCopyTo | 
|  void | remoteRead(byte[] pv,
           int cb,
           int[] pcbRead)remoteRead | 
|  void | remoteSeek(_LARGE_INTEGER dlibMove,
           int dwOrigin,
           _ULARGE_INTEGER[] plibNewPosition)remoteSeek | 
|  void | remoteWrite(byte[] pv,
            int cb,
            int[] pcbWritten)remoteWrite | 
|  void | reset()Resets the stream to the beginning. | 
|  void | revert()revert | 
|  byte[] | saveToBytes()Saves to a UTF-8 byte array. | 
|  void | saveToFile(String filePath)Saves to a file path. | 
|  String | saveToString()Saves to a string. | 
|  void | setSize(_ULARGE_INTEGER libNewSize)setSize | 
|  void | stat(tagSTATSTG[] pstatstg,
     int grfStatFlag)stat | 
|  void | unlockRegion(_ULARGE_INTEGER libOffset,
             _ULARGE_INTEGER cb,
             int dwLockType)unlockRegion | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef | 
|---|
| getJintegraDispatch, release | 
| Constructor Detail | 
|---|
public XMLStream()
          throws IOException,
                 UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public XMLStream(Object obj)
          throws IOException
 XMLStream theXMLStream = (XMLStream) obj;
obj to XMLStream.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail | 
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void loadFromString(String xML)
                    throws IOException,
                           AutomationException
loadFromString in interface IXMLStreamxML - The xML  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadFromFile(String filePath)
                  throws IOException,
                         AutomationException
loadFromFile in interface IXMLStreamfilePath - The filePath  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadFromBytes(byte[] bytes)
                   throws IOException,
                          AutomationException
loadFromBytes in interface IXMLStreambytes - An unsigned byte  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String saveToString()
                    throws IOException,
                           AutomationException
saveToString in interface IXMLStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveToFile(String filePath)
                throws IOException,
                       AutomationException
saveToFile in interface IXMLStreamfilePath - The filePath  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public byte[] saveToBytes()
                   throws IOException,
                          AutomationException
saveToBytes in interface IXMLStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reset()
           throws IOException,
                  AutomationException
reset in interface IXMLStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remoteSeek(_LARGE_INTEGER dlibMove,
                       int dwOrigin,
                       _ULARGE_INTEGER[] plibNewPosition)
                throws IOException,
                       AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
remoteSeek in interface IStreamdlibMove - A Structure: com.esri.arcgis.system._LARGE_INTEGER  (in)dwOrigin - The dwOrigin  (in)plibNewPosition - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSize(_ULARGE_INTEGER libNewSize)
             throws IOException,
                    AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
setSize in interface IStreamlibNewSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remoteCopyTo(IStream pstm,
                         _ULARGE_INTEGER cb,
                         _ULARGE_INTEGER[] pcbRead,
                         _ULARGE_INTEGER[] pcbWritten)
                  throws IOException,
                         AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
remoteCopyTo in interface IStreampstm - A reference to a com.esri.arcgis.system.IStream  (in)cb - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (in)pcbRead - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (out: use single element array)pcbWritten - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void commit(int grfCommitFlags)
            throws IOException,
                   AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
commit in interface IStreamgrfCommitFlags - The grfCommitFlags  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void revert()
            throws IOException,
                   AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
revert in interface IStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void lockRegion(_ULARGE_INTEGER libOffset,
                       _ULARGE_INTEGER cb,
                       int dwLockType)
                throws IOException,
                       AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
lockRegion in interface IStreamlibOffset - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (in)cb - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (in)dwLockType - The dwLockType  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unlockRegion(_ULARGE_INTEGER libOffset,
                         _ULARGE_INTEGER cb,
                         int dwLockType)
                  throws IOException,
                         AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
unlockRegion in interface IStreamlibOffset - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (in)cb - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (in)dwLockType - The dwLockType  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void stat(tagSTATSTG[] pstatstg,
                 int grfStatFlag)
          throws IOException,
                 AutomationException
IStream is a Microsoft interface. Please refer to MSDN for information about this interface.
stat in interface IStreampstatstg - A Structure: com.esri.arcgis.system.tagSTATSTG  (out: use single element array)grfStatFlag - The grfStatFlag  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_clone(IStream[] ppstm)
                throws IOException,
                       AutomationException
esri_clone in interface IStreamppstm - A reference to a com.esri.arcgis.system.IStream  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remoteRead(byte[] pv,
                       int cb,
                       int[] pcbRead)
                throws IOException,
                       AutomationException
ISequentialStream is a Microsoft interface. Please refer to MSDN for information about this interface.
remoteRead in interface ISequentialStreampv - An unsigned byte  (out: use single element array)cb - The cb  (in)pcbRead - The pcbRead  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remoteWrite(byte[] pv,
                        int cb,
                        int[] pcbWritten)
                 throws IOException,
                        AutomationException
ISequentialStream is a Microsoft interface. Please refer to MSDN for information about this interface.
remoteWrite in interface ISequentialStreampv - An unsigned byte  (in)cb - The cb  (in)pcbWritten - The pcbWritten  (out: use single element array)
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 | ||||||||