1 14 package org.wings.io; 15 16 import java.io.IOException ; 17 18 43 public interface Device { 44 47 void flush() throws IOException ; 48 49 52 void close() throws IOException ; 53 54 63 boolean isSizePreserving(); 64 65 71 73 76 Device print(char c) throws IOException ; 77 78 81 Device print(char[] c) throws IOException ; 82 83 87 Device print(char[] c, int start, int len) throws IOException ; 88 89 91 94 Device print(String s) throws IOException ; 95 96 99 Device print(int i) throws IOException ; 100 101 104 Device print(Object o) throws IOException ; 105 106 109 110 113 Device write(int c) throws IOException ; 114 115 119 Device write(byte b[]) throws IOException ; 120 121 125 Device write(byte b[], int off, int len) throws IOException ; 126 } 127 128 129 | Popular Tags |