javax.microedition.io.OutputConnection Java Examples
The following examples show how to use
javax.microedition.io.OutputConnection.
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 File: ConnectorServiceImpl.java From knopflerfish.org with 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 File: ConnectorServiceImpl.java From knopflerfish.org with 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 File: MicroeditionConnector.java From blucat with 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 File: ConnectorAdapter.java From J2ME-Loader with Apache License 2.0 | 4 votes |
@Override public DataOutputStream openDataOutputStream(String name) throws IOException { return ((OutputConnection) open(name)).openDataOutputStream(); }
Example #5
Source File: ConnectorAdapter.java From J2ME-Loader with Apache License 2.0 | 4 votes |
@Override public OutputStream openOutputStream(String name) throws IOException { return ((OutputConnection) open(name)).openOutputStream(); }