org.apache.commons.io.build

## Class AbstractOrigin.URIOrigin

- java.lang.Object
- - org.apache.commons.io.build.AbstractSupplier<T,B>
  - - org.apache.commons.io.build.AbstractOrigin<URI,AbstractOrigin.URIOrigin>
    - - org.apache.commons.io.build.AbstractOrigin.URIOrigin

- All Implemented Interfaces:
    IOSupplier<URI>
  Enclosing class:
    AbstractOrigin<T,B extends AbstractOrigin<T,B>>

      public static class AbstractOrigin.URIOrigin
      extends AbstractOrigin<URI,AbstractOrigin.URIOrigin>

  A `URI` origin.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.commons.io.build.AbstractOrigin

      `AbstractOrigin.AbstractRandomAccessFileOrigin<T extends RandomAccessFile,B extends AbstractOrigin.AbstractRandomAccessFileOrigin<T,B>>, AbstractOrigin.ByteArrayOrigin, AbstractOrigin.CharSequenceOrigin, AbstractOrigin.FileOrigin, AbstractOrigin.InputStreamOrigin, AbstractOrigin.IORandomAccessFileOrigin, AbstractOrigin.OutputStreamOrigin, AbstractOrigin.PathOrigin, AbstractOrigin.RandomAccessFileOrigin, AbstractOrigin.ReaderOrigin, AbstractOrigin.URIOrigin, AbstractOrigin.WriterOrigin`

  - ### Field Summary

    - ### Fields inherited from class org.apache.commons.io.build.AbstractOrigin

      `origin`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `URIOrigin(URI origin)` Constructs a new instance for the given origin.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `File` | `getFile()` Gets this origin as a Path, if possible.
    `InputStream` | `getInputStream(OpenOption... options)` Gets this origin as an InputStream, if possible.
    `Path` | `getPath()` Gets this origin as a Path, if possible.

    - ### Methods inherited from class org.apache.commons.io.build.AbstractOrigin

      `get, getByteArray, getByteArray, getCharSequence, getOutputStream, getRandomAccessFile, getReader, getWriter, size, toString`

    - ### Methods inherited from class org.apache.commons.io.build.AbstractSupplier

      `asThis`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.commons.io.function.IOSupplier

      `asSupplier, getUnchecked`

- - ### Constructor Detail

    - #### URIOrigin

          public URIOrigin(URI origin)

      Constructs a new instance for the given origin.
      Parameters:
        `origin` - The origin, not null.

  - ### Method Detail

    - #### getFile

          public File getFile()

      Description copied from class: `AbstractOrigin`
      Gets this origin as a Path, if possible.
      Overrides:
        `getFile` in class `AbstractOrigin<URI,AbstractOrigin.URIOrigin>`
      Returns:
        this origin as a Path, if possible.

    - #### getInputStream

          public InputStream getInputStream(OpenOption... options)
                                     throws IOException

      Description copied from class: `AbstractOrigin`
      Gets this origin as an InputStream, if possible.
      Overrides:
        `getInputStream` in class `AbstractOrigin<URI,AbstractOrigin.URIOrigin>`
      Parameters:
        `options` - options specifying how the file is opened
      Returns:
        this origin as an InputStream, if possible.
      Throws:
        `IOException` - if an I/O error occurs.

    - #### getPath

          public Path getPath()

      Description copied from class: `AbstractOrigin`
      Gets this origin as a Path, if possible.
      Overrides:
        `getPath` in class `AbstractOrigin<URI,AbstractOrigin.URIOrigin>`
      Returns:
        this origin as a Path, if possible.