Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 588 for IOException (0.19 sec)

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

      }
    
      public void testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock() throws IOException {
        Closer closer = new Closer(suppressor);
    
        IOException tryException = new IOException();
        IOException c1Exception = new IOException();
        IOException c2Exception = new IOException();
    
        TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testMarkNotSet() {
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
        assertThat(expected).hasMessageThat().isEqualTo("Mark not set");
      }
    
      public void testMarkNotSupported() {
        counter = new CountingInputStream(new UnmarkableInputStream());
    
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

      }
    
      @Override
      public void readFully(byte[] b) throws IOException {
        ByteStreams.readFully(this, b);
      }
    
      @Override
      public void readFully(byte[] b, int off, int len) throws IOException {
        ByteStreams.readFully(this, b, off, len);
      }
    
      @Override
      public int skipBytes(int n) throws IOException {
        return (int) in.skip(n);
      }
    
      @CanIgnoreReturnValue // to skip a byte
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharSourceTester.java

        if (expectedLines.isEmpty()) {
          assertNull(source.readFirstLine());
        } else {
          assertEquals(expectedLines.get(0), source.readFirstLine());
        }
      }
    
      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
      public void testIsEmpty() throws IOException {
        assertEquals(expected.isEmpty(), source.isEmpty());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

        asCharSink(to, charset, FileWriteMode.APPEND).write(from);
      }
    
      /**
       * Returns true if the given files exist, are not directories, and contain the same bytes.
       *
       * @throws IOException if an I/O error occurs
       */
      public static boolean equal(File file1, File file2) throws IOException {
        checkNotNull(file1);
        checkNotNull(file2);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  6. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java

      @Override public Socket createSocket() throws IOException {
        UnixSocketChannel channel = UnixSocketChannel.open();
        return new TunnelingUnixSocket(path, channel);
      }
    
      @Override public Socket createSocket(String host, int port) throws IOException {
        Socket result = createSocket();
    
        try {
          result.connect(new InetSocketAddress(host, port));
        } catch (IOException e) {
          result.close();
          throw e;
        }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 03 21:33:52 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/settings/MavenSettingsBuilder.java

        Settings buildSettings(MavenExecutionRequest request) throws IOException, XmlPullParserException;
    
        /**
         * @return a <code>Settings</code> object from the user settings file.
         * @throws IOException if any
         * @throws XmlPullParserException if any
         */
        Settings buildSettings() throws IOException, XmlPullParserException;
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/CharStreams.java

       *
       * @param from the object to read from
       * @param to the object to write to
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue
      public static long copy(Readable from, Appendable to) throws IOException {
        // The most common case is that from is a Reader (like InputStreamReader or StringReader) so
        // take advantage of that.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar

    closeStartTag() throws java.io.IOException; private void writeNamespaceDeclar() throws java.io.IOException; public XmlSerializer endTag(String, String) throws java.io.IOException; public XmlSerializer text(String) throws java.io.IOException; public XmlSerializer text(char[], int, int) throws java.io.IOException; public void cdsect(String) throws java.io.IOException; public void entityRef(String) throws java.io.IOException; public void processingInstructio(String) throws java.io.IOException; public void comment(String)...
    Archive
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 200.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/ASN1Util.java

         * @param in
         * @return coded bytes of the tagged object
         * @throws IOException
         */
        public static byte[] readUnparsedTagged(int expectTag, int limit, ASN1InputStream in) throws IOException {
            int ftag = in.read();
            int tag = readTagNumber(in, ftag);
            if ( tag != expectTag ) {
                throw new IOException("Unexpected tag " + tag);
            }
            int length = readLength(in, limit, false);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 6.5K bytes
    - Viewed (0)
Back to top