Class TrackableByteArrayInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.inductiveautomation.ignition.client.util.TrackableByteArrayInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A Byte array that notifies an instance of child interface "Tracker" about the progress through the stream
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
ConstructorsConstructorDescriptionTrackableByteArrayInputStream
(byte[] buf, TrackableByteArrayInputStream.Tracker tracker) -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, mark, markSupported, readAllBytes, readNBytes, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
TrackableByteArrayInputStream
-
-
Method Details
-
getTracker
-
read
public int read()- Overrides:
read
in classByteArrayInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
read
in classByteArrayInputStream
-
reset
public void reset()- Overrides:
reset
in classByteArrayInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classByteArrayInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classByteArrayInputStream
- Throws:
IOException
-