public class InputStream extends AbstractInputStream implements InputStreamIF
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected java.io.File |
file |
protected java.io.FileInputStream |
fis |
Constructor and Description |
---|
InputStream(java.io.File file)
Create the infpout stream for a file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the input stream.
|
protected void |
err(java.lang.String s)
The output on standard err.
|
protected void |
finalize() |
int |
length()
Get the length of file.
|
protected void |
out(java.lang.String s)
The output on standard out.
|
int |
read(DS_BYTEHolder b,
int off,
int len)
Read a byte array from input stream.
|
void |
reset()
Reset the stream.
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_policy, _hash, _is_equivalent, _release, _request, _set_policy_override
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
protected java.io.FileInputStream fis
protected byte[] buffer
protected java.io.File file
public InputStream(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public int read(DS_BYTEHolder b, int off, int len) throws CORBAFileServerException
read
in interface InputStreamIFOperations
b
- - the buffer into which the data is read.off
- - the start offset in array b at which the data is written.len
- - the maximum number of bytes to read.CORBAFileServerException
- if an IO exception occurs.public void close() throws CORBAFileServerException
InputStreamIFOperations
close
in interface InputStreamIFOperations
CORBAFileServerException
- if an IO exception occurs.public int length() throws CORBAFileServerException
length
in interface InputStreamIFOperations
CORBAFileServerException
- if an IO exception occurs.public void reset() throws CORBAFileServerException
reset
in interface InputStreamIFOperations
CORBAFileServerException
- if an IO exception occurs.protected void out(java.lang.String s)
protected void err(java.lang.String s)