Package org.refcodes.io
Interface ByteDatagramInputStream
-
- All Superinterfaces:
org.refcodes.component.Closable
public interface ByteDatagramInputStream extends org.refcodes.component.Closable(asInputStreamdoes not provide some useful *interface*)- See Also:
InputStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intavailable()Available.voidmark(int readlimit)Mark.booleanmarkSupported()Mark supported.intread()Read.intread(byte[] b)Read.intread(byte[] b, int off, int len)Read.voidreset()Reset.longskip(long n)Skip.
-
-
-
Method Detail
-
read
int read() throws org.refcodes.component.OpenException
Read.- Returns:
- the int
- Throws:
org.refcodes.component.OpenException- the open exception
-
read
int read(byte[] b) throws org.refcodes.component.OpenException
Read.- Parameters:
b- the b- Returns:
- the int
- Throws:
org.refcodes.component.OpenException- the open exception
-
read
int read(byte[] b, int off, int len) throws org.refcodes.component.OpenExceptionRead.- Parameters:
b- the boff- the offlen- the len- Returns:
- the int
- Throws:
org.refcodes.component.OpenException- the open exception
-
skip
long skip(long n) throws org.refcodes.component.OpenException
Skip.- Parameters:
n- the n- Returns:
- the long
- Throws:
org.refcodes.component.OpenException- the open exception
-
available
int available() throws org.refcodes.component.OpenExceptionAvailable.- Returns:
- the int
- Throws:
org.refcodes.component.OpenException- the open exception
-
mark
void mark(int readlimit)
Mark.- Parameters:
readlimit- the readlimit
-
reset
void reset() throws org.refcodes.component.OpenExceptionReset.- Throws:
org.refcodes.component.OpenException- the open exception
-
markSupported
boolean markSupported()
Mark supported.- Returns:
- true, if successful
-
-