1 26 27 package org.objectweb.util.cmdline.api; 28 29 import java.io.PrintStream ; 31 32 55 56 public interface Console 57 { 58 63 public PrintStream 64 getOutputStream(); 65 66 71 public void 72 setOutputStream(PrintStream output); 73 74 79 public PrintStream 80 getErrorStream(); 81 82 87 public void 88 setErrorStream(PrintStream error); 89 90 95 public String 96 getMessageHeader(); 97 98 103 public void 104 setMessageHeader(String header); 105 106 111 public boolean 112 getSilentMessage(); 113 114 119 public void 120 setSilentMessage(boolean flag); 121 122 127 public void 128 message(String text); 129 130 135 public void 136 error(String text); 137 } 138 | Popular Tags |