public class FileServer.SavePipe extends AbstractInputStream implements InputStreamIF
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
protected java.io.InputStream |
is |
| Constructor and Description |
|---|
FileServer.SavePipe(java.io.InputStream is)
Create the infpout stream for a file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the file.
|
protected void |
finalize() |
int |
length()
Get the length of file.
|
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_objectpublic FileServer.SavePipe(java.io.InputStream is)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic int read(DS_BYTEHolder b, int off, int len) throws CORBAFileServerException
read in interface InputStreamIFOperationsb - - 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
close in interface InputStreamIFOperationsCORBAFileServerException - if an IO exception occurs.public int length()
throws CORBAFileServerException
length in interface InputStreamIFOperationsCORBAFileServerException - if an IO exception occurs.public void reset()
throws CORBAFileServerException
reset in interface InputStreamIFOperationsCORBAFileServerException - if an IO exception occurs.