- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for canRead (0.06 sec)
-
src/test/java/jcifs/SmbResourceTest.java
// Given when(mockResource.canRead()).thenReturn(true); when(mockResource.canWrite()).thenReturn(false); // When boolean canRead = mockResource.canRead(); boolean canWrite = mockResource.canWrite(); // Then assertTrue(canRead, "Should be readable"); assertFalse(canWrite, "Should not be writable");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
assertTrue(initialFile.exists(), "Initial file should exist"); assertTrue(initialFile.isFile(), "Initial file should be a file"); assertTrue(initialFile.canRead(), "Should be able to read initial file"); log.info("Basic connectivity test passed - can connect, list, and read files"); } @Test void testCreateNewFile() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java
this.managedVersions = ArtifactUtils.copyArtifacts(managedVersions, new LinkedHashMap<>()); } File pomFile = pomArtifact.getFile(); if (pomFile != null && pomFile.canRead()) { this.length = pomFile.length(); this.timestamp = pomFile.lastModified(); } else { this.length = -1; this.timestamp = -1; }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 11.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
Properties props = new Properties(); channel = new RandomAccessFile(touchfile, "rw").getChannel(); lock = channel.lock(); if (touchfile.canRead()) { getLogger().debug("Reading resolution-state from: " + touchfile); props.load(Channels.newInputStream(channel)); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Tue Apr 22 22:13:51 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
// Arrange doReturn(false).when(smbFile).isDirectory(); doReturn(true).when(smbFile).exists(); // Act & Assert assertTrue(smbFile.canRead()); } @Test void testCanWrite() throws SmbException { // Arrange doReturn(0).when(smbFile).getAttributes(); // No read-only attributeRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java
responseData.addMetaData(entry.getKey(), entry.getValue()); } } if (file.canRead()) { final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper"); if (includeContent) { if (logger.isDebugEnabled()) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 23K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java
responseData.setCharSet(getCharSet(file)); responseData.setLastModified(new Date(file.lastModified())); if (file.canRead()) { final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper"); try (final InputStream is = new BufferedInputStream(new FileInputStream(file))) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 13.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java
responseData.addMetaData(entry.getKey(), entry.getValue()); } } if (file.canRead()) { final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper"); if (includeContent) { if (logger.isDebugEnabled()) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 22.5K bytes - Viewed (3) -
src/main/java/jcifs/SmbResource.java
* * @return <code>true</code> if the file is read-only * @throws CIFSException if an error occurs accessing the resource */ boolean canRead() throws CIFSException; /** * Turn off the read-only attribute of this file. This is shorthand for * <code>setAttributes( getAttributes() & ~ATTR_READONLY )</code>. *Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbFile.java
} return new SmbWatchHandleImpl(openUnshared(O_RDONLY, READ_CONTROL | GENERIC_READ, DEFAULT_SHARING, 0, 1), filter, recursive); } } @Override public boolean canRead() throws SmbException { if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for reading? return true; } return exists(); // try opening and catch sharing violation? }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)