public class DatagramInputStream
extends java.io.ByteArrayInputStream
| Constructor and Description |
|---|
DatagramInputStream(Datagram datagram) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
read() |
int |
read(byte[] buffer,
int off,
int len) |
void |
reset()
Resets the buffer to the marked position.
|
public DatagramInputStream(Datagram datagram)
public void reset()
reset in class java.io.ByteArrayInputStreamArrayIndexOutOfBoundsException - if the underlying buffer has already been releasedpublic int read()
read in class java.io.ByteArrayInputStreampublic int read(byte[] buffer,
int off,
int len)
read in class java.io.ByteArrayInputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.ByteArrayInputStreamjava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object