Code example for FileBackedOutputStream

0
 
	public static int MAX_RAM = 1024 * 1024 * 2;
 
	public FileBackedInputStream(InputStream in) {
		super(in);
		backer = new FileBackedOutputStream(MAX_RAM,false);
	} 
	/* (non-Javadoc) 
	 * @see java.io.FilterInputStream#markSupported() 
	 */ 
	@Override 
	public boolean markSupported() { 
		return false; 
	} 
	public InputStream getInputStream() throws IOException {
		return backer.getSupplier().getInput();
	} 
 
	public void resetBacker() throws IOException {
		backer.reset();
Contextual code suggestions in your IDE  Get Codota for Java