Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for write_bytes (0.17 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            write( tmp, 0, 4 );
        }
        public final void writeDouble( double v ) throws SmbException {
            Encdec.enc_doublebe( v, tmp, 0 );
            write( tmp, 0, 8 );
        }
        public final void writeBytes( String s ) throws SmbException {
            byte[] b = s.getBytes();
            write( b, 0, b.length );
        }
        public final void writeChars( String s ) throws SmbException {
            int clen = s.length();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

        private File propertiesFile;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            propertiesFile = File.createTempFile("test", ".properties");
            FileUtil.writeBytes(propertiesFile.getAbsolutePath(), new byte[0]);
            propertiesFile.deleteOnExit();
            DynamicProperties systemProps = new DynamicProperties(propertiesFile);
            ComponentUtil.register(systemProps, "systemProperties");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

        // TODO
        /*
        private File file1;
        @Override
        public void setUp() throws Exception {
            super.setUp();
            file1 = File.createTempFile("synonym", ".txt");
            FileUtil.writeBytes(file1.getAbsolutePath(),
                    "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2"
                            .getBytes(Constants.UTF_8));
            // TODO set up opensearch and dictionaryManager
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/FileUtil.java

                    }
                }
                return new String(buf, 0, size);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                    return Integer.valueOf(-1);
                }
            };
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java

            super.setUp();
            testDir = File.createTempFile("synonymtest", "_dir");
            testDir.delete();
            testDir.mkdirs();
            file1 = new File(testDir, "synonym.txt");
            FileUtil.writeBytes(file1.getAbsolutePath(), "abc=>123\nxyz,890".getBytes(Constants.UTF_8));
        }
    
        @Override
        public void tearDown() throws Exception {
            super.tearDown();
            FileUtils.deleteDirectory(testDir);
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            final File propFile = File.createTempFile("system", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes());
            ComponentUtil.register(new DynamicProperties(propFile), "systemProperties");
            crawlingConfigHelper = new CrawlingConfigHelper();
            crawlingConfigHelper.init();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    queryParser.init();
                    return queryParser;
                }
            };
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
            ComponentUtil.register(systemProps, "systemProperties");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        @Override
        public final void writeDouble ( double v ) throws SmbException {
            Encdec.enc_doublebe(v, this.tmp, 0);
            write(this.tmp, 0, 8);
        }
    
    
        @Override
        public final void writeBytes ( String s ) throws SmbException {
            byte[] b = s.getBytes();
            write(b, 0, b.length);
        }
    
    
        @Override
        public final void writeChars ( String s ) throws SmbException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            final File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "fess.version=98.76.5".getBytes());
            final File desginJspRootFile = File.createTempFile("jsp", "");
            desginJspRootFile.delete();
            desginJspRootFile.deleteOnExit();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 18.5K bytes
    - Viewed (0)
Back to top