Code example for DatagramPacket

Methods: getData, getLength, getOffset

0
    } 
 
    public static Test suite() {
        TestSuite suite = new TestSuite(UDPInputStreamTest.class);
        return suite;
    } 
 
    protected void setUp() throws Exception { 
        super.setUp(); 
    } 
 
    protected void tearDown() throws Exception { 
        super.tearDown(); 
    } 
 
    /** 
     * Test of read method, of class UDPInputStream. 
     */ 
    public void testRead() throws Exception { 
        System.out.println("read");
        DatagramSocketEmulator emul = new DatagramSocketEmulator();