Code example for FileBackedOutputStream

Methods: reset

0
	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;
	} 
 
	@Override 
	public int read() throws IOException {
		int r = super.read();
Experience pair programming with AI  Get Codota for Java