|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hecl.files.HeclChannel
public class HeclChannel
The HeclChannel
class acts as a container for a data
input stream and/or data output stream. This makes it possible to
both read and write from one "channel".
Field Summary | |
---|---|
java.io.DataInputStream |
datainputstream
datainputstream is the stream that this channel
reads from. |
java.io.DataOutputStream |
dataoutputstream
dataoutputstream is the stream this channel writes
to. |
Constructor Summary | |
---|---|
HeclChannel(java.io.DataInputStream dis)
Creates a new read-only HeclChannel instance. |
|
HeclChannel(java.io.DataInputStream dis,
java.io.DataOutputStream dos)
Creates a new HeclChannel instance for reading and
writing. |
|
HeclChannel(java.io.DataOutputStream dos)
Creates a new write-only HeclChannel instance. |
Method Summary | |
---|---|
boolean |
readable()
readable returns true if the channel is open for
reading. |
boolean |
writable()
writable returns true if the channel is open for
writing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.io.DataInputStream datainputstream
datainputstream
is the stream that this channel
reads from.
public java.io.DataOutputStream dataoutputstream
dataoutputstream
is the stream this channel writes
to.
Constructor Detail |
---|
public HeclChannel(java.io.DataInputStream dis)
HeclChannel
instance.
dis
- a DataInputStream
valuepublic HeclChannel(java.io.DataOutputStream dos)
HeclChannel
instance.
dos
- a DataOutputStream
valuepublic HeclChannel(java.io.DataInputStream dis, java.io.DataOutputStream dos)
HeclChannel
instance for reading and
writing.
dis
- a DataInputStream
valuedos
- a DataOutputStream
valueMethod Detail |
---|
public boolean readable()
readable
returns true if the channel is open for
reading.
boolean
valuepublic boolean writable()
writable
returns true if the channel is open for
writing.
boolean
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |