public static class NSISUtil.NSISInputStream extends InputStream
InputStream implementation that automatically converts the
content from NSIS format to the slightly modified format used to store
NSIS files on Crowdin.| Constructor and Description |
|---|
NSISUtil.NSISInputStream(Path file)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
bufferRemaining() |
void |
close() |
protected void |
fillBuffer()
Refills the buffer from the source, discarding anything that is
before
pos. |
protected int |
findLastBoundary() |
protected String |
getNextLine()
Returns the next line from the source, recycling the buffer as
needed.
|
protected int |
getNextLineSeparatorIndex() |
int |
read() |
available, mark, markSupported, read, read, reset, skippublic NSISUtil.NSISInputStream(@Nonnull Path file) throws IOException
file - the NSIS source file.IOException - If an error occurs during the operation.IllegalArgumentException - if file is null.public int read()
throws IOException
read in class InputStreamIOException@Nullable protected String getNextLine() throws IOException
IOException - If an error occurs during the operation.protected int findLastBoundary()
UTF-8 code
point before or at lim.protected void fillBuffer()
throws IOException
pos.IOException - If an error occurs during the operation.protected int getNextLineSeparatorIndex()
pos) line separator in the buffer, or -1 if
the buffer doesn't contain any further line separators.protected int bufferRemaining()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2024. All rights reserved.