|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaspose.pdf.BasicStream
aspose.pdf.MemStream
public class MemStream
Represents Memory stream extends from BasicStream.
Field Summary |
---|
Fields inherited from class aspose.pdf.BasicStream |
---|
canRead, canSeek, canWrite, length, seek |
Constructor Summary | |
---|---|
MemStream()
Constructs a MemStream instance. |
|
MemStream(BasicStream fs)
Constructs a MemStream instance from a BinaryFileStream object. |
|
MemStream(byte[] data)
Constructs a MemStream instance from a byte array. |
|
MemStream(byte[] data,
boolean canwrite)
Constructs a MemStream instance from a byte array. |
|
MemStream(byte[] data,
int orig,
int count)
Constructs a MemStream instance from a byte array. |
|
MemStream(byte[] data,
int orig,
int count,
boolean canwrite)
Constructs a MemStream instance from a byte array. |
|
MemStream(java.io.InputStream is)
|
|
MemStream(int capacity)
Constructs a MemStream instance. |
|
MemStream(MemStream memStream,
java.lang.String charsetName)
Constructs a MemStream instance from another MemStream object. |
|
MemStream(java.lang.String fname)
|
Method Summary | |
---|---|
void |
close()
Closes the stream. |
void |
flush()
Flushs the stream. |
int |
read()
Reads a int value from the stream. |
int |
read(byte[] data)
Reads a byte array from the stream. |
int |
read(byte[] data,
int offset,
int count)
Reads a byte array from the stream. |
int |
read(int[] data)
Reads a int array from the stream. |
int |
read(int[] data,
int offset,
int count)
Reads a int array from the stream. |
byte |
readByte()
Reads a byte value from the stream. |
void |
skip(long number)
Skips several bytes. |
byte[] |
toArray()
Converts into a byte array. |
void |
write()
Void write. |
void |
write(byte data)
Writes a byte value to the stream. |
void |
write(byte[] data)
Writes a byte array to the stream. |
void |
write(byte[] data,
int offset,
int count)
Writes a byte array to the stream. |
void |
write(java.lang.String string)
Writes a string into the stream. |
Methods inherited from class aspose.pdf.BasicStream |
---|
getCanRead, getCanSeek, getCanWrite, getLength, getSeek, setCanRead, setCanSeek, setCanWrite, setLength, setSeek, setSeek |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemStream()
public MemStream(java.lang.String fname) throws java.io.IOException
java.io.IOException
public MemStream(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public MemStream(BasicStream fs) throws java.io.IOException
fs
- The BinaryFileStream object.
java.io.IOException
public MemStream(int capacity)
capacity
- The capacity of the stream.public MemStream(byte[] data)
data
- The byte array.public MemStream(byte[] data, int orig, int count)
data
- The byte array.orig
- The original position.count
- The count of the byte values.public MemStream(byte[] data, boolean canwrite)
data
- The byte array.canwrite
- Whether the stream can write.public MemStream(byte[] data, int orig, int count, boolean canwrite)
data
- The byte array.orig
- The original position.count
- The count of the byte values.canwrite
- Whether the stream can write.public MemStream(MemStream memStream, java.lang.String charsetName)
memStream
- The MemStream object.charsetName
- The name of a supported charset.[java.nio.charset.Charset]Method Detail |
---|
public int read()
read
in class BasicStream
public byte readByte()
readByte
in class BasicStream
public int read(byte[] data)
data
- The byte array.
public int read(int[] data)
data
- The int array.
public int read(byte[] data, int offset, int count)
read
in class BasicStream
data
- The byte array.offset
- The stream offset.count
- The count of the byte values to be read.
public int read(int[] data, int offset, int count)
data
- The int array.offset
- The stream offset.count
- The count of the int values to be read.
public void skip(long number)
skip
in class BasicStream
number
- The number of the byte values.public void write()
write
in class BasicStream
public void write(byte data)
write
in class BasicStream
data
- The byte value.public void write(byte[] data)
write
in class BasicStream
data
- The byte array.public byte[] toArray()
public void write(byte[] data, int offset, int count)
write
in class BasicStream
data
- The byte array.offset
- The arrays's offset.count
- The count of the values to be write.public void flush()
flush
in class BasicStream
public void close()
close
in class BasicStream
public void write(java.lang.String string)
string
- The string to be write.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |