Package org.eclipse.net4j.buffer
Klasse BufferInputStream
java.lang.Object
java.io.InputStream
org.eclipse.net4j.buffer.BufferInputStream
- Alle implementierten Schnittstellen:
Closeable
,AutoCloseable
,IBufferHandler
- Bekannte direkte Unterklassen:
ChannelInputStream
A
buffer handler
that defragments the passed buffers
into a continuous byte
sequence which is exposed as an input stream
.- Autor:
- Eike Stepper
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final long
static final long
static final long
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
close()
protected void
Subclasses may override.protected boolean
long
long
void
handleBuffer
(IBuffer buffer) Handles anIBuffer
and possibly releases it.boolean
isCCAM()
int
read()
int
read
(byte[] b, int off, int len) void
void
setException
(RemoteException exception) toString()
Von Klasse geerbte Methoden java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Felddetails
-
NO_TIMEOUT
public static final long NO_TIMEOUT- Siehe auch:
-
DEFAULT_MILLIS_BEFORE_TIMEOUT
public static final long DEFAULT_MILLIS_BEFORE_TIMEOUT- Siehe auch:
-
DEFAULT_MILLIS_INTERRUPT_CHECK
public static final long DEFAULT_MILLIS_INTERRUPT_CHECK- Siehe auch:
-
-
Konstruktordetails
-
BufferInputStream
public BufferInputStream()
-
-
Methodendetails
-
isCCAM
public boolean isCCAM()- Seit:
- 4.4
-
getMillisBeforeTimeout
public long getMillisBeforeTimeout() -
getMillisInterruptCheck
public long getMillisInterruptCheck() -
restartTimeout
public void restartTimeout()- Seit:
- 2.0
-
getException
- Seit:
- 2.0
-
setException
- Seit:
- 4.0
-
handleBuffer
Beschreibung aus Schnittstelle kopiert:IBufferHandler
Handles anIBuffer
and possibly releases it.The implementor of this method takes over the ownership of the buffer. Care must be taken to properly
release
the buffer if the ownership is not explicitly passed on to some further party.- Angegeben von:
handleBuffer
in SchnittstelleIBufferHandler
- Parameter:
buffer
- The buffer to be handled.
-
read
- Angegeben von:
read
in KlasseInputStream
- Löst aus:
IOException
-
read
- Setzt außer Kraft:
read
in KlasseInputStream
- Löst aus:
IOException
-
close
- Angegeben von:
close
in SchnittstelleAutoCloseable
- Angegeben von:
close
in SchnittstelleCloseable
- Setzt außer Kraft:
close
in KlasseInputStream
- Löst aus:
IOException
-
toString
-
ensureBuffer
- Löst aus:
IOException
-
closeChannel
protected void closeChannel()Subclasses may override.- Seit:
- 4.5
-