Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for openInputStream (0.2 sec)

  1. src/test/java/jcifs/tests/ConcurrencyTest.java

                  SmbResource exclFile = new SmbFile(sr, fname) ) {
    
                exclFile.createNewFile();
                try {
                    try ( InputStream is = exclFile.openInputStream(SmbConstants.FILE_NO_SHARE);
                          InputStream is2 = exclFile.openInputStream(SmbConstants.FILE_NO_SHARE) ) {
                        fail("No sharing violation");
                    }
                    catch ( SmbException e ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
  2. api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java

            try {
                FileObject inputFile = processingEnv.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", path);
                try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputFile.openInputStream()))) {
                    String line;
                    StringBuilder contentBuilder = new StringBuilder();
                    while ((line = reader.readLine()) != null) {
                        if (!line.trim().startsWith("#")) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Sep 16 06:25:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/SessionTest.java

                    int before = t.getInflightRequests();
                    if ( before > 0 ) {
                        log.warn("Have existing inflight requests");
                    }
                    try ( InputStream is = f.openInputStream() ) {
    
                    }
                    catch ( SmbException e ) {
                        // expected
                    }
                    assertEquals(before, t.getInflightRequests());
                }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Closer.java

     *
     * <p>This class is intended to be used in the following pattern:
     *
     * <pre>{@code
     * Closer closer = Closer.create();
     * try {
     *   InputStream in = closer.register(openInputStream());
     *   OutputStream out = closer.register(openOutputStream());
     *   // do stuff
     * } catch (Throwable e) {
     *   // ensure that any checked exception types other than IOException that could be thrown are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

         * @throws CIFSException
         */
        InputStream openInputStream ( int sharing ) throws CIFSException;
    
    
        /**
         * Opens an input stream reading the file (read only, sharable)
         * 
         * @return input stream, needs to be closed when finished
         * @throws CIFSException
         */
        InputStream openInputStream () throws CIFSException;
    
    
        /**
         * Close/release the file
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  6. src/test/java/jcifs/tests/FileOperationsTest.java

                        assertTrue(f.exists());
    
                        try ( SmbResource e2 = new SmbFile(t, "test") ) {
                            assertTrue(e2.exists());
                            try ( InputStream is = e2.openInputStream() ) {
                                ReadWriteTest.verifyRandom(bufSize, length, is);
                            }
                        }
                    }
                    finally {
                        d1.delete();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/Closer.java

     *
     * <p>This class is intended to be used in the following pattern:
     *
     * <pre>{@code
     * Closer closer = Closer.create();
     * try {
     *   InputStream in = closer.register(openInputStream());
     *   OutputStream out = closer.register(openOutputStream());
     *   // do stuff
     * } catch (Throwable e) {
     *   // ensure that any checked exception types other than IOException that could be thrown are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

        @Override
        public SmbFileInputStream openInputStream () throws SmbException {
            return new SmbFileInputStream(this);
        }
    
    
        @Override
        public SmbFileInputStream openInputStream ( int sharing ) throws SmbException {
            return openInputStream(0, O_RDONLY, sharing);
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
Back to top