1 22 package org.xsocket; 23 24 import java.io.IOException ; 25 import java.nio.ByteBuffer ; 26 27 28 29 30 35 public interface IDataSink { 36 37 38 45 public int write(byte b) throws IOException ; 46 47 48 55 public int write(byte... bytes) throws IOException ; 56 57 58 67 public int write(byte[] bytes, int offset, int length) throws IOException ; 68 69 70 77 public int write(ByteBuffer buffer) throws IOException ; 78 79 80 87 public long write(ByteBuffer [] buffers) throws IOException ; 88 89 90 97 public int write(int i) throws IOException ; 98 99 100 107 public int write(short s) throws IOException ; 108 109 116 public int write(long l) throws IOException ; 117 118 119 126 public int write(double d) throws IOException ; 127 128 129 137 public int write(String message, String encoding) throws IOException ; 138 139 140 147 public int write(String message) throws IOException ; 148 149 } 150 | Popular Tags |