|
|||||||||
| 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
Class represented 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 inputStream)
Constructs a MemStream instance from a InputStream object. |
|
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)
Constructs a MemStream instance from file. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream. |
void |
flush()
Flushes 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. |
byte |
readByte()
Reads a byte value from the stream. |
void |
setSeek(long value)
Sets the current position. |
void |
setSeek(long orig,
long offset)
Sets the offset. |
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 |
| 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
fname - the path for the file
java.io.IOException - if I/O error occurred
public MemStream(java.io.InputStream inputStream)
throws java.io.IOException
InputStream object.
inputStream - the InputStream object
java.io.IOException - if I/O error occurred
public MemStream(BasicStream fs)
throws java.io.IOException
fs - the BinaryFileStream object
java.io.IOException - if I/O error occurredpublic MemStream(int capacity)
capacity - the capacity of the streampublic MemStream(byte[] data)
data - the byte array
public MemStream(byte[] data,
int orig,
int count)
data - the byte arrayorig - the original positioncount - the count of the byte values
public MemStream(byte[] data,
boolean canwrite)
data - the byte arraycanwrite - whether the stream can write
public MemStream(byte[] data,
int orig,
int count,
boolean canwrite)
data - the byte arrayorig - the original positioncount - the count of the byte valuescanwrite - whether the stream can write
public MemStream(MemStream memStream,
java.lang.String charsetName)
memStream - the MemStream objectcharsetName - the name of a supported charset[java.nio.charset.Charset]| Method Detail |
|---|
public int read()
read in class BasicStreampublic byte readByte()
readByte in class BasicStreampublic int read(byte[] data)
data - the byte array
public int read(byte[] data,
int offset,
int count)
read in class BasicStreamdata - the byte arrayoffset - the stream offsetcount - the count of the byte values to be read
public void skip(long number)
skip in class BasicStreamnumber - the number of the byte valuespublic void write()
write in class BasicStreampublic void write(byte data)
write in class BasicStreamdata - the byte valuepublic void write(byte[] data)
write in class BasicStreamdata - the byte arraypublic void setSeek(long value)
setSeek in class BasicStreamvalue - The position.
public void setSeek(long orig,
long offset)
setSeek in class BasicStreamorig - The original value.offset - The offset.public byte[] toArray()
public void write(byte[] data,
int offset,
int count)
write in class BasicStreamdata - the byte arrayoffset - the arrays's offsetcount - the count of the values to be writepublic void flush()
flush in class BasicStreampublic void close()
close in class BasicStreampublic 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 | ||||||||