Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for Filename (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

         */
        @Test
        void testWriteBytesWireFormat_NoUnicode() {
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx);
            smbComOpenAndX.useUnicode = false;
            byte[] dst = new byte[fileName.length() + 1];
            int result = smbComOpenAndX.writeBytesWireFormat(dst, 0);
            assertEquals(fileName.length() + 1, result);
        }
    
        /**
         * Test readParameterWordsWireFormat method.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

        void testWriteParametersWireFormat() {
            // Given
            String filename = "a\\test\\path.txt";
            int informationLevel = 0x0102;
            Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel);
            // Expected size: 2 (info level) + 4 (reserved) + filename length + 1 (null terminator)
            byte[] dst = new byte[2 + 4 + filename.length() + 1];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java

            super(config, SMB2_CLOSE);
            this.fileId = fileId;
            this.fileName = fileName;
        }
    
        /**
         * Constructs a close request with file ID only
         *
         * @param config
         *            The configuration to use
         * @param fileId
         *            The file ID to close
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            File file = new File(dir, filename);
    
            String contents = FileUtils.fileRead(file, encoding);
    
            assertEquals(contentsTest, contents);
        }
    
        public File createFile(File dir, String filename, String contents, String encoding) throws IOException {
            File file = new File(dir, filename);
    
            file.getParentFile().mkdirs();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

            if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) {
                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
                    try (InputStream in = Files.newInputStream(path)) {
                        out.write(in);
                    }
                });
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java

        }
    
        /**
         * Normalizes the filename by replacing special characters.
         * @param filename The filename to normalize.
         * @return The normalized filename.
         */
        protected String normalizeFilename(final String filename) {
            if (StringUtil.isBlank(filename)) {
                return filename;
            }
            final StringBuilder buf = new StringBuilder(filename.length() + 10);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java

        private final int tflags;
        private String filename;
        private final long maxItems;
    
        /**
         * Constructs a Trans2FindNext2 request for continuing a file search.
         *
         * @param config the configuration to use
         * @param sid the search ID from a previous FindFirst2 response
         * @param resumeKey the resume key for continuing the search
         * @param filename the last filename from the previous response
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2.java

            super(config, SMB_COM_TRANSACTION2, TRANS2_FIND_FIRST2);
            if (filename.equals("\\") || (filename.charAt(filename.length() - 1) == '\\')) {
                this.path = filename;
            } else {
                this.path = filename + "\\";
            }
            this.wildcard = wildcard;
            this.searchAttributes = searchAttributes & 0x37; /* generally ignored tho */
    
            this.tflags = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/MimeTypeHelper.java

     */
    public interface MimeTypeHelper {
        /**
         * Determines the content type of the given input stream and filename.
         * @param is the input stream to analyze
         * @param filename the filename to help determine the content type
         * @return the detected content type
         */
        String getContentType(InputStream is, String filename);
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CloseResponse.java

         * @param fileId
         *            The file ID that was closed
         * @param fileName
         *            The name of the file that was closed
         */
        public Smb2CloseResponse(final Configuration config, final byte[] fileId, final String fileName) {
            super(config);
            this.fileId = fileId;
            this.fileName = fileName;
        }
    
        /**
         * Get the close flags
         *
         * @return the closeFlags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top