/** * Writes the tail of the list to the stream for a variable-length list. */ @Override public void writeListEnd() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) BC_END; }
public void writeVersion() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'H'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }
/** * Completes reading the message * <p> * <p>A successful completion will have a single value: * <p> * <pre> * z * </pre> */ public void completeMessage() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'z'; }
/** * Completes an envelope. * <p> * <p>A successful completion will have a single value: * <p> * <pre> * Z * </pre> */ public void completeEnvelope() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'Z'; }
/** * Starts a packet * <p> * <p>A message contains several objects encapsulated by a length</p> * <p> * <pre> * p x02 x00 * </pre> */ public void startMessage() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'p'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }
/** * Writes the call tag. This would be followed by the * method and the arguments * <p> * <code><pre> * C * </pre></code> * * @param method the method name to call. */ @Override public void startCall() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'C'; }
/** * Starts the reply * <p> * <p>A successful completion will have a single value: * <p> * <pre> * R * </pre> */ @Override public void startReply() throws IOException { writeVersion(); flushIfFull(); _buffer[_offset++] = (byte) 'R'; }
/** * <code><pre> * type ::= string * ::= int * </code></pre> */ private void writeType(String type) throws IOException { flushIfFull(); int len = type.length(); if (len == 0) { throw new IllegalArgumentException("empty type is not allowed"); } if (_typeRefs == null) _typeRefs = new HashMap(); Integer typeRefV = (Integer) _typeRefs.get(type); if (typeRefV != null) { int typeRef = typeRefV.intValue(); writeInt(typeRef); } else { _typeRefs.put(type, Integer.valueOf(_typeRefs.size())); writeString(type); } }
public void writeFault(String code, String message, Object detail) throws IOException { flushIfFull(); flushIfFull(); _buffer[_offset++] = (byte) 'Z';
public boolean writeListBegin(int length, String type) throws IOException { flushIfFull();
public void writeVersion() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'H'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }
public void writeVersion() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'H'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }
/** * Writes the tail of the list to the stream for a variable-length list. */ @Override public void writeListEnd() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) BC_END; }
public void writeVersion() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'H'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }
/** * Writes the tail of the list to the stream for a variable-length list. */ public void writeListEnd() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) BC_END; }
public void writeVersion() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'H'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }
/** * Writes the tail of the list to the stream for a variable-length list. */ @Override public void writeListEnd() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) BC_END; }
/** * Writes the tail of the list to the stream for a variable-length list. */ public void writeListEnd() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) BC_END; }
/** * Writes the tail of the list to the stream for a variable-length list. */ public void writeListEnd() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) BC_END; }
public void writeVersion() throws IOException { flushIfFull(); _buffer[_offset++] = (byte) 'H'; _buffer[_offset++] = (byte) 2; _buffer[_offset++] = (byte) 0; }