BytesOutputStream() throws IOException { if (SIZE < _offset + 16) { Hessian2Output.this.flushBuffer(); } _startOffset = _offset; _offset += 3; // skip 'b' xNN xNN }
/** * Writes the tail of the map to the stream. */ public void writeMapEnd() throws IOException { if (SIZE < _offset + 32) flushBuffer(); _buffer[_offset++] = (byte) BC_END; }
BytesOutputStream() throws IOException { if (SIZE < _offset + 16) { Hessian2Output.this.flushBuffer(); } _startOffset = _offset; _offset += 3; // skip 'b' xNN xNN }
/** * Writes the tail of the map to the stream. */ public void writeMapEnd() throws IOException { if (SIZE < _offset + 32) flushBuffer(); _buffer[_offset++] = (byte) BC_END; }
/** * Writes the tail of the map to the stream. */ public void writeMapEnd() throws IOException { if (SIZE < _offset + 32) flushBuffer(); _buffer[_offset++] = (byte) BC_END; }
private final void flushIfFull() throws IOException { int offset = _offset; if (SIZE < offset + 32) { flushBuffer(); } }
private final void flushIfFull() throws IOException { int offset = _offset; if (SIZE < offset + 32) { flushBuffer(); } }
public void flushBuffer() throws IOException { hessian2Output.flushBuffer(); } }
private final void flushIfFull() throws IOException { int offset = _offset; if (SIZE < offset + 32) { flushBuffer(); } }
BytesOutputStream() throws IOException { if (SIZE < _offset + 16) { Hessian2Output.this.flushBuffer(); } _startOffset = _offset; _offset += 3; // skip 'b' xNN xNN }
@Override public void close() throws IOException { int startOffset = _startOffset; _startOffset = -1; if (startOffset < 0) return; int length = (_offset - startOffset) - 3; _buffer[startOffset] = (byte) 'B'; _buffer[startOffset + 1] = (byte) (length >> 8); _buffer[startOffset + 2] = (byte) (length); Hessian2Output.this.flushBuffer(); } }
@Override public void close() throws IOException { int startOffset = _startOffset; _startOffset = -1; if (startOffset < 0) return; int length = (_offset - startOffset) - 3; _buffer[startOffset] = (byte) 'B'; _buffer[startOffset + 1] = (byte) (length >> 8); _buffer[startOffset + 2] = (byte) (length); Hessian2Output.this.flushBuffer(); } }
@Override public void write(int ch) throws IOException { if (SIZE <= _offset) { int length = (_offset - _startOffset) - 3; _buffer[_startOffset] = (byte) BC_BINARY_CHUNK; _buffer[_startOffset + 1] = (byte) (length >> 8); _buffer[_startOffset + 2] = (byte) (length); Hessian2Output.this.flushBuffer(); _startOffset = _offset; _offset += 3; } _buffer[_offset++] = (byte) ch; }
@Override public void write(int ch) throws IOException { if (SIZE <= _offset) { int length = (_offset - _startOffset) - 3; _buffer[_startOffset] = (byte) BC_BINARY_CHUNK; _buffer[_startOffset + 1] = (byte) (length >> 8); _buffer[_startOffset + 2] = (byte) (length); Hessian2Output.this.flushBuffer(); _startOffset = _offset; _offset += 3; } _buffer[_offset++] = (byte) ch; }
@Override public void write(int ch) throws IOException { if (SIZE <= _offset) { int length = (_offset - _startOffset) - 3; _buffer[_startOffset] = (byte) BC_BINARY_CHUNK; _buffer[_startOffset + 1] = (byte) (length >> 8); _buffer[_startOffset + 2] = (byte) (length); Hessian2Output.this.flushBuffer(); _startOffset = _offset; _offset += 3; } _buffer[_offset++] = (byte) ch; }
@Override public void close() throws IOException { int startOffset = _startOffset; _startOffset = -1; if (startOffset < 0) return; int length = (_offset - startOffset) - 3; _buffer[startOffset] = (byte) 'B'; _buffer[startOffset + 1] = (byte) (length >> 8); _buffer[startOffset + 2] = (byte) (length); Hessian2Output.this.flushBuffer(); } }
public final void flush() throws IOException { flushBuffer(); if (_os != null) _os.flush(); }
public final void flush() throws IOException { flushBuffer(); if (_os != null) _os.flush(); }
public final void flush() throws IOException { flushBuffer(); if (_os != null) _os.flush(); }
public final void flush() throws IOException { flushBuffer(); if (_os != null) _os.flush(); }