Code example for BufferedInputStream

Methods: available

0
 
	protected boolean closed = false;
 
	public boolean isClosed() { 
		try { 
			return closed || in.available() == -1;
		} catch (IOException e) {
			return true; 
		} 
	} 
	 
	public void close() throws IOException { 
		this.in.close();
	} 
 
	public static interface GotFirstByteEvent { 
		public void gotFirstByte(); 
	} 
 
	protected List<GotFirstByteEvent> listeners = new LinkedList<GotFirstByteEvent>();