- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for isOpen (0.05 sec)
-
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that the isOpen method returns true for an open handle. */ @Test public void testIsOpen_ReturnsTrueWhenOpen() { when(smbPipeHandle.isOpen()).thenReturn(true); assertTrue(smbPipeHandle.isOpen(), "isOpen() should return true when the handle is open."); } /** * Verifies that the isOpen method returns false for a closed handle.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeOutputStream.java
super(handle.getPipe(), th, null, 0, 0, 0); this.handle = handle; } /** * {@inheritDoc} * * @see jcifs.smb.SmbFileOutputStream#isOpen() */ @Override public boolean isOpen() { return this.handle.isOpen(); } @Override protected synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException { return this.handle.ensureTreeConnected(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
} public String getUncPath() { return this.uncPath; } /** * {@inheritDoc} * * @see jcifs.SmbPipeHandle#isOpen() */ @Override public boolean isOpen() { return this.open && this.handle != null && this.handle.isValid(); } /** * * {@inheritDoc} *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* * @return true if the stream is open, false otherwise */ public boolean isOpen() { return file.isOpen(); } void ensureOpen() throws IOException { // ensure file is open if (!file.isOpen()) { file.open(openFlags, access | SmbConstants.FILE_WRITE_DATA, SmbFile.ATTR_NORMAL, 0); if (append) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/SmbPipeHandle.java
*/ @Override void close() throws CIFSException; /** * Tests whether this file descriptor is open and valid. * * @return whether the FD is open and valid */ boolean isOpen(); /** * Tests whether this file descriptor was previously open but has become invalid. * * @return whether the FD was previously open but became invalid */ boolean isStale();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java
} @Override protected void doSendFragment(final byte[] buf, final int off, final int length, final boolean isDirect) throws IOException { if (out != null && !out.isOpen()) { throw new IOException("DCERPC pipe is no longer open"); } if (in == null) { in = (SmbFileInputStream) pipe.getNamedPipeInputStream(); } if (out == null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
if (len <= 0) { return 0; } final long start = fp; // ensure file is open if (!file.isOpen()) { file.open(openFlags, 0, SmbFile.ATTR_NORMAL, options); } int r, n; final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off); do {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTree.java
*/ int connectionState; int tid; String share; String service = "?????"; String service0; SmbSession session; boolean inDfs, inDomainDfs; int tree_num; // used by SmbFile.isOpen SmbTree(final SmbSession session, final String share, final String service) { this.session = session; this.share = share.toUpperCase(); if (service != null && !service.startsWith("??")) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.1K bytes - Viewed (0)