|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.FileStream
public class FileStream
Specialized kind of IStream for files.
Constructor Summary | |
---|---|
FileStream()
Constructs a FileStream using ArcGIS Engine. |
|
FileStream(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FileStream theFileStream = (FileStream) 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 |
getDocumentVersion()
The version of the document to save. |
int |
getSize()
The size of the stream. |
int |
hashCode()
the hashcode for this object |
void |
loadFromFile(String fileName)
Loads a stream from the specified file. |
void |
lockRegion(_ULARGE_INTEGER libOffset,
_ULARGE_INTEGER cb,
int dwLockType)
lockRegion |
void |
open(String fileName,
int permission)
Opens the specified file. |
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 |
revert()
revert |
void |
saveToFile(String fileName)
Saves the stream to the specified file. |
void |
setDocumentVersion(int docVersion)
The version of the document to save. |
void |
setSize(_ULARGE_INTEGER libNewSize)
setSize |
void |
setSize(int size)
The size of the stream. |
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 FileStream() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FileStream(Object obj) throws IOException
FileStream theFileStream = (FileStream) obj;
obj
to FileStream
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getSize() throws IOException, AutomationException
getSize
in interface IBlobStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSize(int size) throws IOException, AutomationException
setSize
in interface IBlobStream
size
- The size (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveToFile(String fileName) throws IOException, AutomationException
saveToFile
in interface IBlobStream
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadFromFile(String fileName) throws IOException, AutomationException
loadFromFile
in interface IBlobStream
fileName
- The fileName (in)
IOException
- 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 IStream
dlibMove
- 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 IStream
libNewSize
- 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 IStream
pstm
- 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 IStream
grfCommitFlags
- 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 IStream
IOException
- 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 IStream
libOffset
- 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 IStream
libOffset
- 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 IStream
pstatstg
- 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 IStream
ppstm
- 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 ISequentialStream
pv
- 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 ISequentialStream
pv
- 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.public void open(String fileName, int permission) throws IOException, AutomationException
open
in interface IFile
fileName
- The fileName (in)permission
- A com.esri.arcgis.system.esriFilePermission constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDocumentVersion(int docVersion) throws IOException, AutomationException
setDocumentVersion
in interface IDocumentVersion
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDocumentVersion() throws IOException, AutomationException
Determines which version an object is persisted. This can be useful when saving an object ObjectStream or MemoryBlobStream and you want the version of that object to be compatible with previous releases of ArcGIS. Not all persistable objects implement IDocumentVersion; you should ensure the object supports this interface before accessing this property.
getDocumentVersion
in interface IDocumentVersion
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 |