Class TrackableByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- com.inductiveautomation.ignition.client.util.TrackableByteArrayInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class TrackableByteArrayInputStream extends java.io.ByteArrayInputStream
A Byte array that notifies an instance of child interface "Tracker" about the progress through the stream
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TrackableByteArrayInputStream.Tracker
-
Constructor Summary
Constructors Constructor Description TrackableByteArrayInputStream(byte[] buf, TrackableByteArrayInputStream.Tracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
TrackableByteArrayInputStream.Tracker
getTracker()
int
read()
int
read(byte[] b, int off, int len)
void
reset()
long
skip(long n)
-
-
-
Constructor Detail
-
TrackableByteArrayInputStream
public TrackableByteArrayInputStream(byte[] buf, TrackableByteArrayInputStream.Tracker tracker)
-
-
Method Detail
-
getTracker
public TrackableByteArrayInputStream.Tracker getTracker()
-
read
public int read()
- Overrides:
read
in classjava.io.ByteArrayInputStream
-
read
public int read(byte[] b, int off, int len)
- Overrides:
read
in classjava.io.ByteArrayInputStream
-
reset
public void reset()
- Overrides:
reset
in classjava.io.ByteArrayInputStream
-
skip
public long skip(long n)
- Overrides:
skip
in classjava.io.ByteArrayInputStream
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.ByteArrayInputStream
- Throws:
java.io.IOException
-
-