Code example for InputStream

Methods: available

0
	} 
 
	@Override 
	public final int available() throws IOException { 
		checkAccess(); 
		return in.available();
	} 
 
	private void checkAccess() { 
		AccessController.checkPermission(inputPermission);
	} 
 
	@Override 
	public final void close() throws IOException { 
		checkAccess(); 
		in.close();
	} 
 
	@Override 
	public final synchronized void mark(int readlimit) {
		checkAccess();