Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content URI support #395

Merged
merged 1 commit into from
Dec 10, 2017
Merged

Content URI support #395

merged 1 commit into from
Dec 10, 2017

Commits on Nov 29, 2017

  1. Content URI support

    # New methods
    * `getFileUri()` that returns Uri for any passed path (with or without file:// prefix or with content:// prefix)
    * `getInputStream()` that returns InputStream for any Uri passed
    * `getOutputStream()` that returns OutputStream for any Uri passed
    * `getInputStreamBytes()` that reads the whole content of an InputStream and returns it as a byte array
    # Modified methods
    Added content uri support to:
    * `readFile()`
    * `writeFile()`
    * `appendFile()`
    * `write()` - Note: random access (position>=0) is not supported for content uris
    * `read()`
    * `copyFile()` - both source and destination can be content uris
    * `copyInputStream()` - output stream can be a content uri
    # Others
    * IORejectionException - an exception that accepts a code besides a message
    krzysztof-miemiec committed Nov 29, 2017
    Configuration menu
    Copy the full SHA
    1a9e0fa View commit details
    Browse the repository at this point in the history