public static class AbstractOrigin.FileOrigin extends AbstractOrigin<File,AbstractOrigin.FileOrigin>
File
origin.
Starting from this origin, you can get a byte array, a file, an input stream, an output stream, a path, a reader, and a writer.
AbstractOrigin.ByteArrayOrigin, AbstractOrigin.FileOrigin, AbstractOrigin.InputStreamOrigin, AbstractOrigin.OutputStreamOrigin, AbstractOrigin.PathOrigin, AbstractOrigin.ReaderOrigin, AbstractOrigin.URIOrigin, AbstractOrigin.WriterOrigin
Constructor and Description |
---|
FileOrigin(File origin)
Constructs a new instance for the given origin.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Gets this origin as a Path, if possible.
|
Path |
getPath()
Gets this origin as a Path, if possible.
|
get, getByteArray, getInputStream, getOutputStream, getReader, getWriter, toString
asThis
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asSupplier
public FileOrigin(File origin)
origin
- The origin.public File getFile()
AbstractOrigin
getFile
in class AbstractOrigin<File,AbstractOrigin.FileOrigin>
public Path getPath()
AbstractOrigin
getPath
in class AbstractOrigin<File,AbstractOrigin.FileOrigin>
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.