Package org.apache.storm.daemon.utils
Class StreamUtil
java.lang.Object
org.apache.storm.daemon.utils.StreamUtil
Utility class for (Input/Output)Stream.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic voidskipBytes(InputStream stream, Integer n) Skips over and discards N bytes of data from the input stream. 
- 
Method Details
- 
skipBytes
Skips over and discards N bytes of data from the input stream. FileInputStream#skip may not work the first time, so ensure it successfully skips the given number of bytes.- Parameters:
 stream- the stream to skipn- bytes to skip- Throws:
 IOException
 
 -