MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / createNewFile

Method createNewFile

CodenameOne/src/com/codename1/io/File.java:240–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238 ///
239 /// - `IOException`
240 public boolean createNewFile() throws IOException {
241 OutputStream os = null; //NOPMD CloseResource
242 try {
243 os = FileSystemStorage.getInstance().openOutputStream(path);
244 } finally {
245 Util.cleanup(os);
246 }
247 return exists();
248 }
249
250 /// Deletes the file described by this object on the file system.
251 ///

Callers

nothing calls this directly

Calls 4

getInstanceMethod · 0.95
cleanupMethod · 0.95
existsMethod · 0.95
openOutputStreamMethod · 0.65

Tested by

no test coverage detected