com.hippo.io.UniFileOutputStreamPipe Java Examples
The following examples show how to use
com.hippo.io.UniFileOutputStreamPipe.
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: SpiderDen.java From MHViewer with Apache License 2.0 | 6 votes |
/** * @param extension without dot */ @Nullable private OutputStreamPipe openDownloadOutputStreamPipe(int index, @Nullable String extension) { UniFile dir = getDownloadDir(); if (dir == null) { return null; } extension = fixExtension('.' + extension); UniFile file = dir.createFile(generateImageFilename(index, extension)); if (file != null) { return new UniFileOutputStreamPipe(file); } else { return null; } }
Example #2
Source File: SpiderDen.java From EhViewer with Apache License 2.0 | 6 votes |
/** * @param extension without dot */ @Nullable private OutputStreamPipe openDownloadOutputStreamPipe(int index, @Nullable String extension) { UniFile dir = getDownloadDir(); if (dir == null) { return null; } extension = fixExtension('.' + extension); UniFile file = dir.createFile(generateImageFilename(index, extension)); if (file != null) { return new UniFileOutputStreamPipe(file); } else { return null; } }