Package 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<java.net.URI,AbstractOrigin.URIOrigin>
-
- org.apache.commons.io.build.AbstractOrigin.URIOrigin
-
- All Implemented Interfaces:
IOSupplier<java.net.URI>
- Enclosing class:
- AbstractOrigin<T,B extends AbstractOrigin<T,B>>
public static class AbstractOrigin.URIOrigin extends AbstractOrigin<java.net.URI,AbstractOrigin.URIOrigin>
AURI
origin.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.io.build.AbstractOrigin
AbstractOrigin.ByteArrayOrigin, AbstractOrigin.CharSequenceOrigin, AbstractOrigin.FileOrigin, AbstractOrigin.InputStreamOrigin, AbstractOrigin.OutputStreamOrigin, AbstractOrigin.PathOrigin, AbstractOrigin.ReaderOrigin, AbstractOrigin.URIOrigin, AbstractOrigin.WriterOrigin
-
-
Constructor Summary
Constructors Constructor Description URIOrigin(java.net.URI origin)
Constructs a new instance for the given origin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getFile()
Gets this origin as a Path, if possible.java.nio.file.Path
getPath()
Gets this origin as a Path, if possible.-
Methods inherited from class org.apache.commons.io.build.AbstractOrigin
get, getByteArray, getByteArray, getCharSequence, getInputStream, getOutputStream, getReader, getWriter, size, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier
-
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
Description copied from class:AbstractOrigin
Gets this origin as a Path, if possible.- Overrides:
getFile
in classAbstractOrigin<java.net.URI,AbstractOrigin.URIOrigin>
- Returns:
- this origin as a Path, if possible.
-
getPath
public java.nio.file.Path getPath()
Description copied from class:AbstractOrigin
Gets this origin as a Path, if possible.- Overrides:
getPath
in classAbstractOrigin<java.net.URI,AbstractOrigin.URIOrigin>
- Returns:
- this origin as a Path, if possible.
-
-