@FunctionalInterface public interface InputSplitter
InputStream
.Modifier and Type | Method and Description |
---|---|
default long |
getLowerLimitSize()
Returns the lower limit of split size.
|
default long |
getPreferredSize()
Returns the preferred split size.
|
InputStream |
trim(InputStream input,
long offset,
long splitSize)
Trims
InputStream to provide the correct split data. |
InputStream trim(InputStream input, long offset, long splitSize) throws IOException
InputStream
to provide the correct split data.input
- the input, which skipped leading data until the offset positionoffset
- the current input offset in bytessplitSize
- the preferred split size in bytes (may be larger than the input)InputStream
IOException
- if I/O error was occurred while trimming the inputdefault long getPreferredSize()
default long getLowerLimitSize()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.