public class Filesystem extends Object
| Constructor and Description |
|---|
Filesystem() |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Flowable<String> |
readTextFile(String pathToFile) |
io.reactivex.Flowable<String> |
readTextFileFromClasspath(String resourcePath) |
io.reactivex.Single<String> |
readTextFileFully(String pathToFile) |
io.reactivex.Single<String> |
readTextFileFullyFromClasspath(String resourcePath) |
io.reactivex.Completable |
writeFile(String content,
String filePath) |
io.reactivex.Completable |
writeFileSync(String content,
Charset encoding,
String filePath,
boolean append) |
io.reactivex.Completable |
writeFileSync(String content,
String filePath,
boolean append) |
public io.reactivex.Flowable<String> readTextFileFromClasspath(String resourcePath)
public io.reactivex.Single<String> readTextFileFullyFromClasspath(String resourcePath)
public io.reactivex.Completable writeFileSync(String content, String filePath, boolean append) throws IOException
IOExceptionpublic io.reactivex.Completable writeFileSync(String content, Charset encoding, String filePath, boolean append) throws IOException
IOExceptionCopyright © 2018. All rights reserved.