1 18 package org.osgi.service.io; 19 20 import java.io.*; 21 22 import javax.microedition.io.Connection; 23 import javax.microedition.io.Connector; 24 25 47 public interface ConnectorService { 48 53 public static final int READ = Connector.READ; 54 59 public static final int WRITE = Connector.WRITE; 60 65 public static final int READ_WRITE = Connector.READ_WRITE; 66 67 78 public Connection open(String name) throws IOException; 79 80 93 public Connection open(String name, int mode) throws IOException; 94 95 110 public Connection open(String name, int mode, boolean timeouts) 111 throws IOException; 112 113 124 public InputStream openInputStream(String name) throws IOException; 125 126 138 public DataInputStream openDataInputStream(String name) throws IOException; 139 140 151 public OutputStream openOutputStream(String name) throws IOException; 152 153 165 public DataOutputStream openDataOutputStream(String name) 166 throws IOException; 167 } 168 | Popular Tags |