Code example for FileBackedOutputStream

Methods: reset

0
         // we must call FileBackedOutputStream.reset to remove temporary file 
         return new FilterInputStream(out.asByteSource().openStream()) {
            @Override 
            public void close() throws IOException {
               super.close(); 
               out.reset();
            } 
         }; 
      } catch (IOException e) {
         throw new RuntimeException("Error tapping line", e);
      } finally { 
         closeQuietly(out);
         closeQuietly(instream);
      } 
   } 
 
   public InputStream input(InputStream instream) {
      return copy("<< ", checkNotNull(instream, "input"));
   } 
 
Experience pair programming with AI  Get Codota for Java