sisc.modules.io
Class Networking.UDPInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by sisc.modules.io.Networking.UDPInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
Networking

public static class Networking.UDPInputStream
extends java.io.InputStream


Field Summary
protected  int blen
           
protected  int bp
           
protected  java.net.DatagramSocket ds
           
protected  java.net.DatagramPacket p
           
 
Constructor Summary
Networking.UDPInputStream(java.net.DatagramSocket ds, int packet_size)
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
protected  void receive()
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

protected java.net.DatagramSocket ds

p

protected java.net.DatagramPacket p

bp

protected int bp

blen

protected int blen
Constructor Detail

Networking.UDPInputStream

public Networking.UDPInputStream(java.net.DatagramSocket ds,
                                 int packet_size)
Method Detail

receive

protected void receive()
                throws java.io.IOException
Throws:
java.io.IOException

available

public int available()
Overrides:
available in class java.io.InputStream

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException