1 23 24 29 30 31 package com.sun.cli.jmx.cmd; 32 33 import java.io.PrintStream ; 34 35 public class CmdOutputImpl implements CmdOutput 36 { 37 final PrintStream mOutput; 38 final PrintStream mErrorOutput; 39 40 CmdOutputImpl( PrintStream output, PrintStream errorOutput ) 41 { 42 mOutput = output; 43 mErrorOutput = errorOutput; 44 } 45 46 public void 47 print( Object o ) 48 { 49 mOutput.print( o ); 50 } 51 52 public void 53 println( Object o ) 54 { 55 mOutput.println( o ); 56 } 57 58 public void 59 printError( Object o ) 60 { 61 mErrorOutput.println( o ); 62 } 63 64 public void 65 printDebug( Object o ) 66 { 67 println( o ); 68 } 69 }; 70 71 72 | Popular Tags |