|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.StreamWrapper
public class StreamWrapper
Aspose.IO.Stream wrapper for COM interface.
Method Summary | |
---|---|
boolean |
canRead()
Gets a value indicating whether the current stream supports reading. |
boolean |
canSeek()
Gets a value indicating whether the current stream supports seeking. |
boolean |
canWrite()
Gets a value indicating whether the current stream supports writing. |
void |
close()
Closes the current stream and releases any resources. |
void |
dispose()
|
void |
flush()
Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
long |
getLength()
Gets the length in bytes of the stream. |
long |
getPosition()
Gets or sets the position within the current stream. |
java.io.OutputStream |
getStream()
|
void |
read(byte[] buffer,
int offset,
int count)
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
int |
readByte()
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. |
long |
seek(long offset,
int origin)
Sets the position within the current stream |
void |
write(byte[] buffer,
int offset,
int count)
writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |
void |
writeByte(byte value)
Writes a byte to the current position in the stream and advances the position within the stream by one byte. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.io.OutputStream getStream()
getStream
in interface IStreamWrapper
public boolean canRead()
Gets a value indicating whether the current stream supports reading.
canRead
in interface IStreamWrapper
public boolean canSeek()
Gets a value indicating whether the current stream supports seeking.
canSeek
in interface IStreamWrapper
public boolean canWrite()
Gets a value indicating whether the current stream supports writing.
canWrite
in interface IStreamWrapper
public long getLength()
Gets the length in bytes of the stream.
getLength
in interface IStreamWrapper
public long getPosition()
Gets or sets the position within the current stream.
getPosition
in interface IStreamWrapper
public void close()
Closes the current stream and releases any resources.
close
in interface IStreamWrapper
public void dispose()
dispose
in interface com.aspose.ms.System.IDisposable
public void flush()
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
flush
in interface IStreamWrapper
public void read(byte[] buffer, int offset, int count)
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
read
in interface IStreamWrapper
public int readByte()
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
readByte
in interface IStreamWrapper
public long seek(long offset, int origin)
Sets the position within the current stream
seek
in interface IStreamWrapper
public void write(byte[] buffer, int offset, int count)
writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
write
in interface IStreamWrapper
public void writeByte(byte value)
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
writeByte
in interface IStreamWrapper
value
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |