- Sort Score
- Num 10 results
- Language All
Results 11 - 18 of 18 for ensureOpen (1.26 seconds)
-
src/main/java/jcifs/smb/SmbFileInputStream.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
return this.handle.ensureTreeConnected(); } @Override protected synchronized SmbFileHandleImpl ensureOpen() throws CIFSException { return this.handle.ensureOpen(); } /** * This stream class is unbuffered. Therefore this method will always * return 0 for streams connected to regular files. However, a
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
when(mockFileHandle.isValid()).thenReturn(false, true); // First false to trigger ensureOpen, then true when(mockFileHandle.getFileId()).thenReturn(new byte[16]); when(mockFileHandle.acquire()).thenReturn(mockFileHandle); // Mock for ensureOpen to reopen file when(mockFile.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mockFileHandle);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeHandleInternal.java
/** * Ensures that the file handle is open and returns it. * * @return file handle * @throws CIFSException if an error occurs opening the file */ SmbFileHandle ensureOpen() throws CIFSException; /** * Receive data from the pipe * * @param buf buffer to receive data into * @param off offset in the buffer * @param length maximum length to receiveCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.7K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@DisplayName("open() acquires handle and closes it") void openDelegatesEnsureOpenAndCloses() throws Exception { SmbFileInputStream in = newStream(); in.open(); // ensureOpen returns acquired handle; try-with-resources must close it verify(mockHandle, times(1)).close(); verify(mockHandle, atLeastOnce()).acquire(); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
} } int getNextNameTrnId() { if ((++this.nextNameTrnId & 0xFFFF) == 0) { this.nextNameTrnId = 1; } return this.nextNameTrnId; } void ensureOpen(final int timeout) throws IOException { this.closeTimeout = 0; if (this.transportContext.getConfig().getNetbiosSoTimeout() != 0) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 38.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
} } int getNextNameTrnId() { if ((++nextNameTrnId & 0xFFFF) == 0) { nextNameTrnId = 1; } return nextNameTrnId; } void ensureOpen(final int timeout) throws IOException { closeTimeout = 0; if (SO_TIMEOUT != 0) { closeTimeout = Math.max(SO_TIMEOUT, timeout); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 17.6K bytes - Click Count (0)