Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for EOF (0.12 sec)

  1. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
        assertThrows(EOFException.class, () -> in.readUnsignedByte());
      }
    
      public void testReadUnsignedShort_eof() throws IOException {
        byte[] buf = {23};
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
        assertThrows(EOFException.class, () -> in.readUnsignedByte());
      }
    
      public void testReadUnsignedShort_eof() throws IOException {
        byte[] buf = {23};
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharStreamsTest.java

                return seen;
              }
            };
        assertEquals(2, CharStreams.readLines(r, conditional).intValue());
        assertEquals("ab", sb.toString());
      }
    
      public void testSkipFully_EOF() throws IOException {
        Reader reader = new StringReader("abcde");
        assertThrows(EOFException.class, () -> CharStreams.skipFully(reader, 6));
      }
    
      public void testSkipFully() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

                return seen;
              }
            };
        assertEquals(2, CharStreams.readLines(r, conditional).intValue());
        assertEquals("ab", sb.toString());
      }
    
      public void testSkipFully_EOF() throws IOException {
        Reader reader = new StringReader("abcde");
        assertThrows(EOFException.class, () -> CharStreams.skipFully(reader, 6));
      }
    
      public void testSkipFully() throws IOException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

              // is smaller.
              buf = new byte[skip];
            }
            if ((skipped = in.read(buf, 0, skip)) == -1) {
              // Reached EOF
              break;
            }
          }
    
          totalSkipped += skipped;
        }
    
        return totalSkipped;
      }
    
      /**
    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