Sha256: 50610d12b4d81d761ae4987f97d60887b2d85a29498fd9dbc5d3d31927170db1
Contents?: true
Size: 876 Bytes
Versions: 119
Compression:
Stored size: 876 Bytes
Contents
package j2me.io; import java.io.OutputStream; import java.io.IOException; public class BufferedOutputStream extends FilterOutputStream{ public BufferedOutputStream(OutputStream out, int size) { /* super(out); if (size <= 0) { throw new IllegalArgumentException("Buffer size <= 0"); } buf = new byte[size];*/ } public synchronized void write(int b) throws IOException { /* if (count >= buf.length) { flushBuffer(); } buf[count++] = (byte)b;*/ } public synchronized void write(byte b[], int off, int len) throws IOException { /*if (len >= buf.length) { flushBuffer(); out.write(b, off, len); return; } if (len > buf.length - count) { flushBuffer(); } System.arraycopy(b, off, buf, count, len); count += len;*/ } }
Version data entries
119 entries across 119 versions & 1 rubygems