示例#1
0
 /**
  * Print the variable's value using <code>OutputStream</code>.
  *
  * @param os the <code>OutputStream</code> on which to print the value.
  * @param space this value is passed to the <code>printDecl</code> method, and controls the
  *     leading spaces of the output.
  * @param print_decl_p a boolean value controlling whether the variable declaration is printed as
  *     well as the value.
  * @see DataDDS#printVal(PrintWriter)
  */
 public void printVal(OutputStream os, String space, boolean print_decl_p) {
   PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(os)));
   printVal(pw, space, print_decl_p);
   pw.flush();
 }
示例#2
0
 /**
  * Print the variable's value using <code>OutputStream</code>.
  *
  * @param os the <code>OutputStream</code> on which to print the value.
  * @param space this value is passed to the <code>printDecl</code> method, and controls the
  *     leading spaces of the output.
  * @see DataDDS#printVal(PrintWriter)
  */
 public void printVal(OutputStream os, String space) {
   PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(os)));
   printVal(pw, space);
   pw.flush();
 }
示例#3
0
 /**
  * Print the variable's value. Same as <code>printVal(os, space, true)</code>.
  *
  * @param os the <code>PrintWriter</code> on which to print the value.
  * @param space this value is passed to the <code>printDecl</code> method, and controls the
  *     leading spaces of the output.
  * @see DataDDS#printVal(PrintWriter)
  */
 public void printVal(PrintWriter os, String space) {
   printVal(os, space, true);
 }