Code example for ByteArrayInputStream

Methods: read

0
	} 
 
	// test support 
 
	private void init(final String msg) {
		rawIn = new ByteArrayInputStream(Constants.encodeASCII(msg));
		in = new PacketLineIn(rawIn);
	} 
 
	private void assertEOF() { 
		assertEquals(-1, rawIn.read());
	} 
}