Interface TrustedSkipInputStream

  • All Implemented Interfaces:

    @CalledFromNative() 
    public interface TrustedSkipInputStream
    
                        

    Implemented by InputStreams that guarantee that their skip methods always skip the full amount unless EOF is reached (or an exception is thrown).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract long skip(long amount)
      static InputStream makeTrusted(InputStream inputStream) Wraps inputStream such that it has a trusted skip method, unless it already implements TrustedSkipInputStream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • skip

         abstract long skip(long amount)
      • makeTrusted

         static InputStream makeTrusted(InputStream inputStream)

        Wraps inputStream such that it has a trusted skip method, unless it already implements TrustedSkipInputStream.