org.hecl.files
Class HeclChannel
- java.lang.Object
-
- org.hecl.files.HeclChannel
-
public class HeclChannel extends java.lang.ObjectTheHeclChannelclass 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
Fields Modifier and Type Field and Description java.io.DataInputStreamdatainputstreamdatainputstreamis the stream that this channel reads from.java.io.DataOutputStreamdataoutputstreamdataoutputstreamis the stream this channel writes to.
-
Constructor Summary
Constructors Constructor and Description HeclChannel(java.io.DataInputStream dis)Creates a new read-onlyHeclChannelinstance.HeclChannel(java.io.DataInputStream dis, java.io.DataOutputStream dos)Creates a newHeclChannelinstance for reading and writing.HeclChannel(java.io.DataOutputStream dos)Creates a new write-onlyHeclChannelinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanreadable()readablereturns true if the channel is open for reading.booleanwritable()writablereturns true if the channel is open for writing.
-
-
-
Field Detail
-
datainputstream
public java.io.DataInputStream datainputstream
datainputstreamis the stream that this channel reads from.
-
dataoutputstream
public java.io.DataOutputStream dataoutputstream
dataoutputstreamis the stream this channel writes to.
-
-
Constructor Detail
-
HeclChannel
public HeclChannel(java.io.DataInputStream dis)
Creates a new read-onlyHeclChannelinstance.- Parameters:
dis- aDataInputStreamvalue
-
HeclChannel
public HeclChannel(java.io.DataOutputStream dos)
Creates a new write-onlyHeclChannelinstance.- Parameters:
dos- aDataOutputStreamvalue
-
HeclChannel
public HeclChannel(java.io.DataInputStream dis, java.io.DataOutputStream dos)Creates a newHeclChannelinstance for reading and writing.- Parameters:
dis- aDataInputStreamvaluedos- aDataOutputStreamvalue
-
-
DataMelt 3.0 © DataMelt by jWork.ORG