Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 61 for openStream (0.07 sec)

  1. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

                    @Override
                    public Path getPath() {
                        return null;
                    }
    
                    @Override
                    public InputStream openStream() throws IOException {
                        return source.getInputStream();
                    }
    
                    @Override
                    public String getLocation() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/CopyUtil.java

         */
        public static int copy(final URL in, final OutputStream out) {
            assertArgumentNotNull("in", in);
            assertArgumentNotNull("out", out);
    
            final InputStream is = URLUtil.openStream(in);
            try {
                if (out instanceof FileOutputStream) {
                    return copyInternal(wrap(is), (FileOutputStream) out);
                }
                return copyInternal(wrap(is), wrap(out));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/TraversalUtil.java

                this.zipUrl = zipUrl;
                this.prefix = prefix;
            }
    
            private void loadFromZip(final URL zipUrl) {
                final ZipInputStream zis = new ZipInputStream(URLUtil.openStream(zipUrl));
                try {
                    ZipEntry entry = null;
                    while ((entry = ZipInputStreamUtil.getNextEntry(zis)) != null) {
                        entryNames.add(entry.getName());
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/SourceSinkTester.java

      }
    
      protected static ImmutableList<String> getLines(final String string) {
        try {
          return new CharSource() {
            @Override
            public Reader openStream() throws IOException {
              return new StringReader(string);
            }
          }.readLines();
        } catch (IOException e) {
          throw new AssertionError();
        }
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 18:57:08 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

            SourceWrapper(Source source) {
                this.source = source;
            }
    
            @Override
            public InputStream getInputStream() throws IOException {
                return source.openStream();
            }
    
            @Override
            public String getLocation() {
                return source.getLocation();
            }
    
            @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CharSourceTester.java

      }
    
      @Override
      protected void setUp() throws Exception {
        this.source = factory.createSource(data);
      }
    
      public void testOpenStream() throws IOException {
        Reader reader = source.openStream();
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/IoTestCase.java

        for (int i = 0; i < size; i++) {
          array[i] = (byte) (offset + i);
        }
        return array;
      }
    
      private static void copy(URL url, File file) throws IOException {
        InputStream in = url.openStream();
        try {
          OutputStream out = new FileOutputStream(file);
          try {
            byte[] buf = new byte[4096];
            for (int read = in.read(buf); read != -1; read = in.read(buf)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/ResourceUtil.java

        public static InputStream getResourceAsStream(final String path, final String extension) {
            assertArgumentNotEmpty("path", path);
    
            final URL url = getResource(path, extension);
            return URLUtil.openStream(url);
        }
    
        /**
         * コンテキストクラスローダからリソースを検索してストリームとして返します。 リソースが見つからなかった場合は<code>null</code>
         * を返します。
         *
         * @param path
         *            リソースのパス。{@literal null}や空文字列であってはいけません
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Files.java

          ByteSource
      {
    
        private final File file;
    
        private FileByteSource(File file) {
          this.file = checkNotNull(file);
        }
    
        @Override
        public FileInputStream openStream() throws IOException {
          return new FileInputStream(file);
        }
    
        @Override
        public Optional<Long> sizeIfKnown() {
          if (file.isFile()) {
            return Optional.of(file.length());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/BaseEncoding.java

      public final ByteSink encodingSink(CharSink encodedSink) {
        checkNotNull(encodedSink);
        return new ByteSink() {
          @Override
          public OutputStream openStream() throws IOException {
            return encodingStream(encodedSink.openStream());
          }
        };
      }
    
      // TODO(lowasser): document the extent of leniency, probably after adding ignore(CharMatcher)
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top