01: /*
02: * Copyright (c) 1999-2002 Sun Microsystems, Inc., 901 San Antonio Road,
03: * Palo Alto, CA 94303, U.S.A. All Rights Reserved.
04: *
05: * Sun Microsystems, Inc. has intellectual property rights relating
06: * to the technology embodied in this software. In particular, and
07: * without limitation, these intellectual property rights may include
08: * one or more U.S. patents, foreign patents, or pending
09: * applications. Sun, Sun Microsystems, the Sun logo, Java, KJava,
10: * and all Sun-based and Java-based marks are trademarks or
11: * registered trademarks of Sun Microsystems, Inc. in the United
12: * States and other countries.
13: *
14: * This software is distributed under licenses restricting its use,
15: * copying, distribution, and decompilation. No part of this
16: * software may be reproduced in any form by any means without prior
17: * written authorization of Sun and its licensors, if any.
18: *
19: * FEDERAL ACQUISITIONS: Commercial Software -- Government Users
20: * Subject to Standard License Terms and Conditions
21: */
22:
23: package com.sun.portal.microedition.io;
24:
25: import java.io.*;
26:
27: /**
28: * This interface defines the capabilities that an input stream
29: * connection must have.
30: *
31: * @author Nik Shaylor
32: * @version 1.1 1/7/2000
33: * @since CLDC 1.0
34: */
35: public interface InputConnection extends Connection {
36:
37: /**
38: * Open and return an input stream for a connection.
39: *
40: * @return An input stream
41: * @exception IOException If an I/O error occurs
42: */
43: public InputStream openInputStream() throws IOException;
44:
45: /**
46: * Open and return a data input stream for a connection.
47: *
48: * @return An input stream
49: * @exception IOException If an I/O error occurs
50: */
51: public DataInputStream openDataInputStream() throws IOException;
52: }
|