1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_09) on Sun Sep 02 23:07:08 BST 2007 -->
7 StreamConnection (leJOS NXT API documentation)
10 <META NAME="keywords" CONTENT="javax.microedition.io.StreamConnection interface">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 parent.document.title="StreamConnection (leJOS NXT API documentation)";
25 <BODY BGCOLOR="white" onload="windowTitle();">
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36 <TR ALIGN="center" VALIGN="top">
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 PREV CLASS
55 NEXT CLASS</FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../index.html?javax/microedition/io/StreamConnection.html" target="_top"><B>FRAMES</B></A>
58 <A HREF="StreamConnection.html" target="_top"><B>NO FRAMES</B></A>
59 <SCRIPT type="text/javascript">
62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
87 javax.microedition.io</FONT>
89 Interface StreamConnection</H2>
91 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../lejos/nxt/comm/BTConnection.html" title="class in lejos.nxt.comm">BTConnection</A>, <A HREF="../../../lejos/nxt/comm/USBConnection.html" title="class in lejos.nxt.comm">USBConnection</A></DD>
95 <DT><PRE>public interface <B>StreamConnection</B></DL>
99 This interface defines the capabilities that a stream connection must have.
101 StreamConnections have one underlying InputStream and one OutputStream.
103 Opening a DataInputStream counts as opening an InputStream and opening a DataOutputStream counts as opening an OutputStream.
105 Trying to open another InputStream or OutputStream causes an IOException.
107 Trying to open the InputStream or OutputStream after they have been closed causes an IOException
115 <!-- ========== METHOD SUMMARY =========== -->
117 <A NAME="method_summary"><!-- --></A>
118 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121 <B>Method Summary</B></FONT></TH>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125 <CODE> void</CODE></FONT></TD>
126 <TD><CODE><B><A HREF="../../../javax/microedition/io/StreamConnection.html#close()">close</A></B>()</CODE>
129 Close the stream connection</TD>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE> <A HREF="../../../java/io/DataInputStream.html" title="class in java.io">DataInputStream</A></CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../../javax/microedition/io/StreamConnection.html#openDataInputStream()">openDataInputStream</A></B>()</CODE>
137 Open and return a DataInputStream - not yet implemented.</TD>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE> <A HREF="../../../java/io/DataOutputStream.html" title="class in java.io">DataOutputStream</A></CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../../javax/microedition/io/StreamConnection.html#openDataOutputStream()">openDataOutputStream</A></B>()</CODE>
145 Open and return a DataOutputStream - not yet implemented.</TD>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE> <A HREF="../../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../../javax/microedition/io/StreamConnection.html#openInputStream()">openInputStream</A></B>()</CODE>
153 Open and return an InputStream - not yet implemented.</TD>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE> <A HREF="../../../java/io/OutputStream.html" title="class in java.io">OutputStream</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../../javax/microedition/io/StreamConnection.html#openOutputStream()">openOutputStream</A></B>()</CODE>
161 Open and return an OutputStream - not yet implemented.</TD>
167 <!-- ============ METHOD DETAIL ========== -->
169 <A NAME="method_detail"><!-- --></A>
170 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
171 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
172 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
173 <B>Method Detail</B></FONT></TH>
177 <A NAME="close()"><!-- --></A><H3>
181 throws <A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
183 <DD>Close the stream connection
188 <DD><CODE><A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
193 <A NAME="openInputStream()"><!-- --></A><H3>
196 <A HREF="../../../java/io/InputStream.html" title="class in java.io">InputStream</A> <B>openInputStream</B>()
197 throws <A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
199 <DD>Open and return an InputStream - not yet implemented.
204 <DD><CODE><A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
209 <A NAME="openDataInputStream()"><!-- --></A><H3>
210 openDataInputStream</H3>
212 <A HREF="../../../java/io/DataInputStream.html" title="class in java.io">DataInputStream</A> <B>openDataInputStream</B>()
213 throws <A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
215 <DD>Open and return a DataInputStream - not yet implemented.
220 <DD><CODE><A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
225 <A NAME="openOutputStream()"><!-- --></A><H3>
226 openOutputStream</H3>
228 <A HREF="../../../java/io/OutputStream.html" title="class in java.io">OutputStream</A> <B>openOutputStream</B>()
229 throws <A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
231 <DD>Open and return an OutputStream - not yet implemented.
236 <DD><CODE><A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
241 <A NAME="openDataOutputStream()"><!-- --></A><H3>
242 openDataOutputStream</H3>
244 <A HREF="../../../java/io/DataOutputStream.html" title="class in java.io">DataOutputStream</A> <B>openDataOutputStream</B>()
245 throws <A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
247 <DD>Open and return a DataOutputStream - not yet implemented.
252 <DD><CODE><A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
255 <!-- ========= END OF CLASS DATA ========= -->
259 <!-- ======= START OF BOTTOM NAVBAR ====== -->
260 <A NAME="navbar_bottom"><!-- --></A>
261 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
262 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
264 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
265 <A NAME="navbar_bottom_firstrow"><!-- --></A>
266 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
267 <TR ALIGN="center" VALIGN="top">
268 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
269 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
270 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
271 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
272 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
273 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
274 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
278 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
284 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
285 PREV CLASS
286 NEXT CLASS</FONT></TD>
287 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
288 <A HREF="../../../index.html?javax/microedition/io/StreamConnection.html" target="_top"><B>FRAMES</B></A>
289 <A HREF="StreamConnection.html" target="_top"><B>NO FRAMES</B></A>
290 <SCRIPT type="text/javascript">
293 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
298 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
305 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
306 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
307 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
308 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
311 <A NAME="skip-navbar_bottom"></A>
312 <!-- ======== END OF BOTTOM NAVBAR ======= -->