|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectaspose.pdf.BasicStream
public class BasicStream
Represents basic stream.
| Field Summary | |
|---|---|
protected boolean |
canRead
stream CanRead. |
protected boolean |
canSeek
stream CanRead. |
protected boolean |
canWrite
stream CanRead. |
protected long |
length
stream length. |
protected long |
seek
stream position. |
| Constructor Summary | |
|---|---|
BasicStream()
Construct a BasicStream instance. |
|
BasicStream(java.io.InputStream input)
Construct a BasicStream instance. |
|
| Method Summary | |
|---|---|
void |
close()
abstract method for stream close. |
void |
flush()
abstract method for stream flush. |
boolean |
getCanRead()
Gets a value indicating whether the current stream supports reading. |
boolean |
getCanSeek()
Gets a value of false indicating seeking is not supported for this stream. |
boolean |
getCanWrite()
Gets a value of false indicating that this stream is not writable. |
long |
getLength()
Gets the length of the stream. |
long |
getSeek()
Gets the current position. |
int |
read()
abstract method for stream read. |
int |
read(byte[] in,
int offset,
int count)
Abstract method for stream read. |
byte |
readByte()
Abstract method for stream read. |
void |
setCanRead(boolean value)
Set a value indicating whether the current stream supports reading. |
void |
setCanSeek(boolean value)
Sets a value indicating whether the current stream supports seeking. |
void |
setCanWrite(boolean value)
Sets a value indicating whether the current stream supports writing. |
void |
setLength(long value)
Sets the stream length. |
void |
setSeek(long value)
Sets the current position. |
void |
setSeek(long orig,
long offset)
Sets the offset. |
void |
skip(long number)
abstract method for stream skip. |
void |
write()
Abstract method for stream write. |
void |
write(byte temp)
Abstract method for stream write. |
void |
write(byte[] temp)
Abstract method for stream write. |
void |
write(byte[] temp,
int offset,
int count)
Abstract method for stream write. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long seek
protected long length
protected boolean canRead
protected boolean canSeek
protected boolean canWrite
| Constructor Detail |
|---|
public BasicStream()
public BasicStream(java.io.InputStream input)
input - The InputStream object.| Method Detail |
|---|
public boolean getCanRead()
public void setCanRead(boolean value)
value - Whether the stream supports reading.public boolean getCanSeek()
public void setCanSeek(boolean value)
value - Whether the stream supports seeking.public boolean getCanWrite()
public void setCanWrite(boolean value)
value - The position.public long getSeek()
public void setSeek(long value)
value - The position.
public void setSeek(long orig,
long offset)
orig - The original value.offset - The offset.public long getLength()
public void setLength(long value)
value - The length of the stream.
public int read()
throws java.io.IOException
java.io.IOException
public byte readByte()
throws java.io.IOException
java.io.IOException
public int read(byte[] in,
int offset,
int count)
throws java.io.IOException
java.io.IOException
public void skip(long number)
throws java.io.IOException
java.io.IOException
public void write()
throws java.io.IOException
java.io.IOException
public void write(byte[] temp,
int offset,
int count)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] temp)
public void write(byte temp)
public void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||