/** * This will create a new stream for which filtered byte should be written to. You probably don't * want this but want to use the createUnfilteredStream, which is used to write raw bytes to. * * @param expectedLength An entry where a length is expected. * @return A stream that can be written to. * @throws IOException If there is an error creating the stream. */ public OutputStream createFilteredStream(COSBase expectedLength) throws IOException { return firstStream.createFilteredStream(expectedLength); }
/** * This will create a new stream for which filtered byte should be written to. You probably don't * want this but want to use the createUnfilteredStream, which is used to write raw bytes to. * * @return A stream that can be written to. * @throws IOException If there is an error creating the stream. */ public OutputStream createFilteredStream() throws IOException { return firstStream.createFilteredStream(); }