Code example for FileBackedOutputStream

Methods: getSupplier

0
	@Override 
	public boolean markSupported() { 
		return false; 
	} 
	public InputStream getInputStream() throws IOException {
		return backer.getSupplier().getInput();
	} 
 
	public void resetBacker() throws IOException {
		backer.reset();
	} 
 
	@Override 
	public int read(byte[] b, int off, int len) throws IOException {
		int amt = super.read(b, off, len);
		if(amt != -1) {
			backer.write(b,off,amt);
		} 
		return amt;
	}