Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for openOutputStream (0.14 sec)

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

         * @author Ilan Goldfeld
         */
        // #261
        @Test
        public void testExistsOnLock () throws IOException {
            try ( SmbFile f = createTestFile();
                  SmbFileOutputStream ostream = f.openOutputStream(true, SmbConstants.FILE_NO_SHARE);
                  SmbFile checkFile = new SmbFile(f.getCanonicalPath(), f.getContext()) ) {
    
                try {
                    assertTrue(checkFile.exists());
                }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Closer.java

     *
     * <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
     *   // provided here, e.g. throw closer.rethrow(e, CheckedException.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFile.java

        @Override
        public SmbFileOutputStream openOutputStream () throws SmbException {
            return new SmbFileOutputStream(this);
        }
    
    
        @Override
        public SmbFileOutputStream openOutputStream ( boolean append ) throws SmbException {
            return openOutputStream(append, FILE_SHARE_READ);
        }
    
    
        @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)
  4. src/test/java/jcifs/tests/FileOperationsTest.java

            long length = 4096 * 16 + 512;
            try ( SmbFile f = createTestDirectory();
                  SmbResource e = new SmbFile(f, "test") ) {
                e.createNewFile();
    
                try ( OutputStream os = e.openOutputStream() ) {
                    ReadWriteTest.writeRandom(bufSize, length, os);
                }
    
                try ( SmbFile d1 = createTestDirectory();
                      SmbFile t = new SmbFile(d1, makeRandomName()) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Closer.java

     *
     * <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
     *   // provided here, e.g. throw closer.rethrow(e, CheckedException.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top