Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for writeRandom (0.07 sec)

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

                try {
                    int bufSize = 4096;
                    long l = 1024;
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) {
                        writeRandom(bufSize, l, raf);
                        assertEquals(l, raf.getFilePointer());
                        raf.seek(0);
                        assertEquals(0, raf.getFilePointer());
                        verifyRandom(bufSize, l, raf);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/ReadWriteTest.java

                try {
                    try ( OutputStream os = f.openOutputStream() ) {
                        writeRandom(4096, 3072, os);
                    }
    
                    // this should truncate
                    try ( OutputStream os = f.openOutputStream() ) {
                        writeRandom(4096, 1024, os);
                    }
    
                    try ( InputStream is = f.getInputStream() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/FileOperationsTest.java

                    try {
                        try ( OutputStream os = f.getOutputStream() ) {
                            ReadWriteTest.writeRandom(bufSize, length, os);
                        }
    
                        try ( OutputStream os = t.getOutputStream() ) {
                            ReadWriteTest.writeRandom(bufSize, 2 * length, os);
                        }
    
                        f.copyTo(t);
                        assertTrue(f.exists());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top