Java Code Examples for javax.microedition.io.OutputConnection
The following examples show how to use
javax.microedition.io.OutputConnection.
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: knopflerfish.org Author: knopflerfish File: ConnectorServiceImpl.java License: BSD 3-Clause "New" or "Revised" License | 5 votes |
public DataOutputStream openDataOutputStream(String name) throws IOException { Connection con = open(name, ConnectorService.WRITE, false); if (con instanceof OutputConnection) { DataOutputStream stream = ((OutputConnection)con).openDataOutputStream(); con.close(); return stream; } con.close(); throw new IOException("Given scheme does not support output"); }
Example #2
Source Project: knopflerfish.org Author: knopflerfish File: ConnectorServiceImpl.java License: BSD 3-Clause "New" or "Revised" License | 5 votes |
public OutputStream openOutputStream(String name) throws IOException { Connection con = open(name, ConnectorService.WRITE, false); if (con instanceof OutputConnection) { OutputStream stream = ((OutputConnection)con).openOutputStream(); con.close(); return stream; } con.close(); throw new IOException("Given scheme does not support output"); }
Example #3
Source Project: blucat Author: ieee8023 File: MicroeditionConnector.java License: GNU General Public License v2.0 | 5 votes |
public static OutputStream openOutputStream(String name) throws IOException { OutputConnection con = ((OutputConnection) openImpl(name, WRITE, false, false)); try { return con.openOutputStream(); } finally { con.close(); } }
Example #4
Source Project: J2ME-Loader Author: nikita36078 File: ConnectorAdapter.java License: Apache License 2.0 | 4 votes |
@Override public DataOutputStream openDataOutputStream(String name) throws IOException { return ((OutputConnection) open(name)).openDataOutputStream(); }
Example #5
Source Project: J2ME-Loader Author: nikita36078 File: ConnectorAdapter.java License: Apache License 2.0 | 4 votes |
@Override public OutputStream openOutputStream(String name) throws IOException { return ((OutputConnection) open(name)).openOutputStream(); }