Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 209 for IOException (0.09 sec)

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

                    throws IOException {
                  Files.deleteIfExists(file);
                  return FileVisitResult.CONTINUE;
                }
    
                @Override
                public FileVisitResult postVisitDirectory(Path dir, IOException exc)
                    throws IOException {
                  if (exc != null) {
                    return FileVisitResult.TERMINATE;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSinkTest.java

      }
    
      public void testOpenBufferedStream() throws IOException {
        Writer writer = sink.openBufferedStream();
        assertTrue(sink.wasStreamOpened());
        assertFalse(sink.wasStreamClosed());
    
        writer.write(STRING);
        writer.close();
    
        assertTrue(sink.wasStreamClosed());
        assertEquals(STRING, sink.getString());
      }
    
      public void testWrite_string() throws IOException {
        assertEquals("", sink.getString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      public void testCopyTo_outputStream() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
    
        assertEquals(bytes.length, source.copyTo(out));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        assertArrayEquals(bytes, out.toByteArray());
      }
    
      public void testCopyTo_byteSink() throws IOException {
        TestByteSink sink = new TestByteSink();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/CharSource.java

       * it does.
       *
       * @throws IOException if an I/O error occurs while reading from this source or if {@code
       *     processor} throws an {@code IOException}
       * @since 16.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException {
        checkNotNull(processor);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ByteSink.java

       * independent stream each time it is called.
       *
       * <p>The caller is responsible for ensuring that the returned stream is closed.
       *
       * @throws IOException if an I/O error occurs while opening the stream
       */
      public abstract OutputStream openStream() throws IOException;
    
      /**
       * Opens a new buffered {@link OutputStream} for writing to this sink. The returned stream is not
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 16:55:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            return dir;
        }
    
        public synchronized File createTempFile() throws IOException {
            File tempFile = File.createTempFile(baseFilename, fileSuffix);
            tempFile.deleteOnExit();
            markForDeletion(tempFile);
    
            return tempFile;
        }
    
        public void cleanUp() throws IOException {
            for (Iterator it = filesToDelete.iterator(); it.hasNext(); ) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            loadLayout(reader, false);
        }
    
        public void save() throws IOException {
            save(this.location);
        }
    
        public void save(Path location) throws IOException {
            try (OutputStream os = Files.newOutputStream(location)) {
                save(os);
            }
        }
    
        public void save(OutputStream os) throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/JoinerTest.java

              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(char c) throws IOException {
              throw new IOException();
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                }
                mappingItemList = itemList;
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
            }
        }
    
        public String getSimpleName() {
            return new File(path).getName();
        }
    
        public synchronized void update(final InputStream in) throws IOException {
            try (MappingUpdater updater = new MappingUpdater(null)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

        @Override
        public org.apache.maven.model.Model read(File file, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(file, "file cannot be null");
            return read(file.toPath(), options);
        }
    
        @Override
        public org.apache.maven.model.Model read(Path path, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(path, "path cannot be null");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top