/** * Prints a string to the stream, encoded as UTF-8 * * @param v the string to print. */ public void printString(String v) throws IOException { printString(v, 0, v.length()); }
/** * Prints a string to the stream, encoded as UTF-8 * * @param v the string to print. */ public void printString(String v) throws IOException { printString(v, 0, v.length()); }
/** * Prints a string to the stream, encoded as UTF-8 * * @param v the string to print. */ public void printString(String v) throws IOException { printString(v, 0, v.length()); }
/** * Prints a string to the stream, encoded as UTF-8 * * @param v the string to print. */ public void printString(String v) throws IOException { printString(v, 0, v.length()); }
/** * Same hack as {@link #startCall}: this method is missing from HessianOutput */ public void writeMethod(String methodName) throws IOException { stream.write(109); int len = methodName.length(); stream.write(len >> 8); stream.write(len); output.printString(methodName, 0, len); }
/** * Writes a header name. The header value must immediately follow. * * <code><pre> * H b16 b8 foo <em>value</em> * </pre></code> */ public void writeHeader(String name) throws IOException { int len = name.length(); os.write('H'); os.write(len >> 8); os.write(len); printString(name); }
/** * Writes a header name. The header value must immediately follow. * * <code><pre> * H b16 b8 foo <em>value</em> * </pre></code> */ public void writeHeader(String name) throws IOException { int len = name.length(); os.write('H'); os.write(len >> 8); os.write(len); printString(name); }
/** * Writes a header name. The header value must immediately follow. * * <code><pre> * H b16 b8 foo <em>value</em> * </pre></code> */ public void writeHeader(String name) throws IOException { int len = name.length(); os.write('H'); os.write(len >> 8); os.write(len); printString(name); }
/** * Writes a header name. The header value must immediately follow. * * <code><pre> * H b16 b8 foo <em>value</em> * </pre></code> */ public void writeHeader(String name) throws IOException { int len = name.length(); os.write('H'); os.write(len >> 8); os.write(len); printString(name); }
/** * Writes the method tag. * * <code><pre> * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void writeMethod(String method) throws IOException { os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }
/** * Writes the method tag. * * <code><pre> * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void writeMethod(String method) throws IOException { os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }
/** * Writes the method tag. * * <code><pre> * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void writeMethod(String method) throws IOException { os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }
/** * Writes the method tag. * * <code><pre> * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void writeMethod(String method) throws IOException { os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }
/** * Prints a string to the stream, encoded as UTF-8 with preceeding length * * @param v the string to print. */ public void printLenString(String v) throws IOException { if (v == null) { os.write(0); os.write(0); } else { int len = v.length(); os.write(len >> 8); os.write(len); printString(v, 0, len); } }
/** * Prints a string to the stream, encoded as UTF-8 with preceeding length * * @param v the string to print. */ public void printLenString(String v) throws IOException { if (v == null) { os.write(0); os.write(0); } else { int len = v.length(); os.write(len >> 8); os.write(len); printString(v, 0, len); } }
/** * Prints a string to the stream, encoded as UTF-8 with preceeding length * * @param v the string to print. */ public void printLenString(String v) throws IOException { if (v == null) { os.write(0); os.write(0); } else { int len = v.length(); os.write(len >> 8); os.write(len); printString(v, 0, len); } }
/** * Prints a string to the stream, encoded as UTF-8 with preceeding length * * @param v the string to print. */ public void printLenString(String v) throws IOException { if (v == null) { os.write(0); os.write(0); } else { int len = v.length(); os.write(len >> 8); os.write(len); printString(v, 0, len); } }
/** * Starts the method call. Clients would use <code>startCall</code> * instead of <code>call</code> if they wanted finer control over * writing the arguments, or needed to write headers. * * <code><pre> * c major minor * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void startCall(String method, int length) throws IOException { os.write('c'); os.write(_version); os.write(0); os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }
/** * Starts the method call. Clients would use <code>startCall</code> * instead of <code>call</code> if they wanted finer control over * writing the arguments, or needed to write headers. * * <code><pre> * c major minor * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void startCall(String method, int length) throws IOException { os.write('c'); os.write(_version); os.write(0); os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }
/** * Starts the method call. Clients would use <code>startCall</code> * instead of <code>call</code> if they wanted finer control over * writing the arguments, or needed to write headers. * * <code><pre> * c major minor * m b16 b8 method-name * </pre></code> * * @param method the method name to call. */ public void startCall(String method, int length) throws IOException { os.write('c'); os.write(_version); os.write(0); os.write('m'); int len = method.length(); os.write(len >> 8); os.write(len); printString(method, 0, len); }