@Test public void testStorageMode() throws IOException { SaveOnReadInputStream soris = getSaveOnReadInputStream(); InputStreamFactory isf = soris.getInputStreamFactory(); assertEquals(StorageMode.MEMORY, isf.getStorageMode()); InputStream is = isf.getInputStream(); assertEquals("hello world", new String(ObjectConverterUtil.convertToByteArray(is), Streamable.CHARSET)); }
public InputStreamFactory getInputStreamFactory() { return inputStreamFactory; }
SaveOnReadInputStream extends FilterInputStream { public InputStreamFactory getInputStreamFactory() { return inputStreamFactory; } }
SaveOnReadInputStream extends FilterInputStream { public InputStreamFactory getInputStreamFactory() { return inputStreamFactory; } SaveOnReadInputStream(InputStream in,
            FileStoreInputStreamFactory fsisf); }
SaveOnReadInputStream extends FilterInputStream { public InputStreamFactory getInputStreamFactory() { return inputStreamFactory; } SaveOnReadInputStream(InputStream in,
            FileStoreInputStreamFactory fsisf); @Override int read(); @Override int read(byte[] b, int off, int len); @Override void close(); InputStreamFactory getInputStreamFactory(); }
SaveOnReadInputStream extends FilterInputStream { public InputStreamFactory getInputStreamFactory() { return inputStreamFactory; } SaveOnReadInputStream(InputStream in,
            FileStoreInputStreamFactory fsisf); @Override int read(); @Override int read(byte[] b, int off, int len); @Override void close(); InputStreamFactory getInputStreamFactory();  }