/** * Flushes this output stream and forces any buffered output bytes to be written out to the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void flush() throws IOException { flush(true); }
/** * Writes the specified <code>byte</code> to this output stream. * * @param i * source byte * @throws IOException * if an I/O error occurs. */ @Override public void write(final int i) throws IOException { singleByte[0] = (byte) i; write(singleByte, 0, 1); }
/** * Closes this output stream and releases any system resources associated with the stream. * <p> * To write the EOF marker without closing the stream, call {@link #eof()} or use an * <a href="https://commons.apache.org/proper/commons-io/">Apache Commons IO</a> <a href= * "https://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/output/CloseShieldOutputStream.html" * >CloseShieldOutputStream</a>. * </p> * * @throws IOException * if an I/O error occurs. */ @Override public void close() throws IOException { eof(); flush(); out.close(); }
baseNCodec.decode(b, offset, len, context); flush(false);
/** * Writes the specified <code>byte</code> to this output stream. * * @param i * source byte * @throws IOException * if an I/O error occurs. */ @Override public void write(final int i) throws IOException { singleByte[0] = (byte) i; write(singleByte, 0, 1); }
/** * Closes this output stream and releases any system resources associated with the stream. * <p> * To write the EOF marker without closing the stream, call {@link #eof()} or use an * <a href="https://commons.apache.org/proper/commons-io/">Apache Commons IO</a> <a href= * "https://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/output/CloseShieldOutputStream.html" * >CloseShieldOutputStream</a>. * </p> * * @throws IOException * if an I/O error occurs. */ @Override public void close() throws IOException { eof(); flush(); out.close(); }
/** * Flushes this output stream and forces any buffered output bytes to be written out to the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void flush() throws IOException { flush(true); }
/** * Writes the specified <code>byte</code> to this output stream. * * @param i * source byte * @throws IOException * if an I/O error occurs. */ @Override public void write(final int i) throws IOException { singleByte[0] = (byte) i; write(singleByte, 0, 1); }
/** * Flushes this output stream and forces any buffered output bytes to be written out to the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void flush() throws IOException { flush(true); }
/** * Writes the specified <code>byte</code> to this output stream. * * @param i * source byte * @throws IOException * if an I/O error occurs. */ @Override public void write(final int i) throws IOException { singleByte[0] = (byte) i; write(singleByte, 0, 1); }
/** * Flushes this output stream and forces any buffered output bytes to be written out to the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void flush() throws IOException { flush(true); }
/** * Writes the specified <code>byte</code> to this output stream. * * @param i * source byte * @throws IOException * if an I/O error occurs. */ @Override public void write(final int i) throws IOException { singleByte[0] = (byte) i; write(singleByte, 0, 1); }
/** * Flushes this output stream and forces any buffered output bytes to be written out to the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void flush() throws IOException { flush(true); }
/** * Writes the specified <code>byte</code> to this output stream. * * @param i * source byte * @throws IOException * if an I/O error occurs. */ @Override public void write(final int i) throws IOException { singleByte[0] = (byte) i; write(singleByte, 0, 1); }
/** * Flushes this output stream and forces any buffered output bytes to be written out to the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void flush() throws IOException { flush(true); }
/** * Closes this output stream and releases any system resources associated with the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void close() throws IOException { // Notify encoder of EOF (-1). if (doEncode) { baseNCodec.encode(singleByte, 0, EOF, context); } else { baseNCodec.decode(singleByte, 0, EOF, context); } flush(); out.close(); }
/** * Closes this output stream and releases any system resources associated with the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void close() throws IOException { // Notify encoder of EOF (-1). if (doEncode) { baseNCodec.encode(singleByte, 0, EOF, context); } else { baseNCodec.decode(singleByte, 0, EOF, context); } flush(); out.close(); }
/** * Closes this output stream and releases any system resources associated with the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void close() throws IOException { // Notify encoder of EOF (-1). if (doEncode) { baseNCodec.encode(singleByte, 0, EOF, context); } else { baseNCodec.decode(singleByte, 0, EOF, context); } flush(); out.close(); }
/** * Closes this output stream and releases any system resources associated with the stream. * * @throws IOException * if an I/O error occurs. */ @Override public void close() throws IOException { // Notify encoder of EOF (-1). if (doEncode) { baseNCodec.encode(singleByte, 0, EOF, context); } else { baseNCodec.decode(singleByte, 0, EOF, context); } flush(); out.close(); }
baseNCodec.decode(b, offset, len, context); flush(false);