Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for skipUpTo (0.16 sec)

  1. android/guava/src/com/google/common/io/ByteSource.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.io.ByteStreams.createBuffer;
    import static com.google.common.io.ByteStreams.skipUpTo;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Ascii;
    import com.google.common.base.Optional;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteStreams.java

       * @throws IOException if an I/O error occurs, or the stream does not support skipping
       */
      public static void skipFully(InputStream in, long n) throws IOException {
        long skipped = skipUpTo(in, n);
        if (skipped < n) {
          throw new EOFException(
              "reached end of stream after skipping " + skipped + " bytes; " + n + " bytes expected");
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top