public class IOStreamConnector extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
IOStreamConnector.IOStreamConnectorListener |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
protected Vector<IOStreamConnector.IOStreamConnectorListener> |
listenerList |
Constructor and Description |
---|
IOStreamConnector()
Creates a new IOStreamConnector object.
|
IOStreamConnector(InputStream in,
OutputStream out)
Creates a new IOStreamConnector object.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IOStreamConnector.IOStreamConnectorListener l) |
void |
close() |
void |
connect(InputStream in,
OutputStream out) |
long |
getBytes() |
Throwable |
getLastError() |
boolean |
isClosed() |
void |
removeListener(IOStreamConnector.IOStreamConnectorListener l) |
void |
setBufferSize(int numbytes) |
void |
setCloseInput(boolean closeInput) |
void |
setCloseOutput(boolean closeOutput) |
public static final int DEFAULT_BUFFER_SIZE
protected Vector<IOStreamConnector.IOStreamConnectorListener> listenerList
public IOStreamConnector()
public IOStreamConnector(InputStream in, OutputStream out)
in
- out
- public void close()
public Throwable getLastError()
public void setCloseInput(boolean closeInput)
closeInput
- public void setCloseOutput(boolean closeOutput)
closeOutput
- public void setBufferSize(int numbytes)
public void connect(InputStream in, OutputStream out)
in
- out
- public long getBytes()
public boolean isClosed()
public void addListener(IOStreamConnector.IOStreamConnectorListener l)
l
- public void removeListener(IOStreamConnector.IOStreamConnectorListener l)
l
- Copyright © 2024. All rights reserved.