1 21 package com.db4o.foundation.network; 22 23 import java.io.*; 24 25 public interface YapSocket { 26 27 public abstract void close() throws IOException; 28 29 public abstract void flush() throws IOException; 30 31 public abstract boolean isConnected(); 32 33 public abstract int read() throws IOException; 34 35 public abstract int read(byte[] a_bytes, int a_offset, int a_length) 36 throws IOException; 37 38 public abstract void setSoTimeout(int timeout); 39 40 public abstract void write(byte[] bytes) throws IOException; 41 42 public abstract void write(byte[] bytes, int off, int len) 43 throws IOException; 44 45 public abstract void write(int i) throws IOException; 46 47 public abstract YapSocket openParalellSocket() throws IOException; 48 49 } | Popular Tags |