public static class MemoryMappedFileInputStream.Builder extends org.apache.commons.io.build.AbstractStreamBuilder<MemoryMappedFileInputStream,MemoryMappedFileInputStream.Builder>
MemoryMappedFileInputStream instance.
For example:
MemoryMappedFileInputStream s = MemoryMappedFileInputStream.builder()
.setPath(path)
.setBufferSize(256 * 1024)
.get();
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MemoryMappedFileInputStream |
get()
Constructs a new instance.
|
getCharset, setBufferSize, setBufferSize, setCharset, setCharset, setOpenOptionssetByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setReader, setURI, setWriterequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasSupplierpublic MemoryMappedFileInputStream get() throws java.io.IOException
This builder use the aspects Path and buffer size.
You must provide an origin that can be converted to a Path by this builder, otherwise, this call will throw an
UnsupportedOperationException.
java.lang.UnsupportedOperationException - if the origin cannot provide a Path.java.io.IOException - if an I/O error occurs.AbstractOrigin.getPath()Copyright © 2010 - 2023 Adobe. All Rights Reserved