use of com.codename1.io.BufferedOutputStream in project CodenameOne by codenameone.
the class BlackBerryImplementation method openOutputStream.
/**
* @inheritDoc
*/
public OutputStream openOutputStream(Object connection, int offset) throws IOException {
FileConnection fc = (FileConnection) Connector.open((String) connection, Connector.READ_WRITE);
if (!fc.exists()) {
fc.create();
}
BufferedOutputStream o = new BufferedOutputStream(fc.openOutputStream(offset), (String) connection);
o.setConnection(fc);
return o;
}
Aggregations