public static class MemoryMappedFileInputStream.Builder extends AbstractStreamBuilder<MemoryMappedFileInputStream,MemoryMappedFileInputStream.Builder>
MemoryMappedFileInputStream.
For example:
MemoryMappedFileInputStream s = MemoryMappedFileInputStream.builder()
.setPath(path)
.setBufferSize(256 * 1024)
.get();
get()| Constructor and Description |
|---|
Builder()
Constructs a new builder of
MemoryMappedFileInputStream. |
| Modifier and Type | Method and Description |
|---|---|
MemoryMappedFileInputStream |
get()
Builds a new
MemoryMappedFileInputStream. |
getBufferSize, getBufferSizeDefault, getCharSequence, getCharset, getCharsetDefault, getFile, getInputStream, getOpenOptions, getOutputStream, getPath, getRandomAccessFile, getReader, getWriter, setBufferSize, setBufferSize, setBufferSizeChecker, setBufferSizeMax, setCharset, setCharset, setOpenOptionssetByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setRandomAccessFile, setRandomAccessFile, setReader, setURI, setWriterequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasSupplier, getUncheckedpublic Builder()
MemoryMappedFileInputStream.public MemoryMappedFileInputStream get() throws java.io.IOException
MemoryMappedFileInputStream.
You must set an aspect that supports AbstractStreamBuilder.getPath(), otherwise, this method throws an exception.
This builder uses the following aspects:
AbstractStreamBuilder.getPath() gets the target aspect.AbstractStreamBuilder.getBufferSize()java.lang.IllegalStateException - if the origin is null.java.lang.UnsupportedOperationException - if the origin cannot be converted to a Path.java.io.IOException - if an I/O error occurs converting to an Path using AbstractStreamBuilder.getPath().AbstractStreamBuilder.getPath(),
AbstractStreamBuilder.getBufferSize(),
IOSupplier.getUnchecked()Copyright © 2010 - 2025 Adobe. All Rights Reserved