Package org.kohsuke.stapler.framework.io
Interface LargeText.Session
- All Superinterfaces:
AutoCloseable,Closeable
- Enclosing class:
- LargeText
Represents the read session of the
LargeText.Source.
Methods follow the contracts of InputStream.-
Method Summary
Modifier and TypeMethodDescriptionintread(byte[] buf) See alsoInputStream.read(byte[]).intread(byte[] buf, int offset, int length) See alsoInputStream.read(byte[], int, int).longskip(long n) See alsoInputStream.skip(long).
-
Method Details
-
skip
See alsoInputStream.skip(long).- Parameters:
n- Number of bytes to skip ahead.- Returns:
- Number of bytes that were skipped.
- Throws:
IOException- if an error occurs. Skipping less than n bytes does not need to throw.
-
read
See alsoInputStream.read(byte[]).- Parameters:
buf- Buffer to fill.- Returns:
- Number of bytes that were filled.
- Throws:
IOException- if an error occurs.
-
read
See alsoInputStream.read(byte[], int, int).- Parameters:
buf- Buffer to fill.offset- Number of bytes to skip in buf.length- Number of bytes to read at most.- Returns:
- Number of bytes that were read.
- Throws:
IOException- if an error occurs.
-