Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for readBytes (1.61 sec)

  1. src/test/java/org/codelibs/core/io/FileUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.io.FileUtil.readBytes;
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertThat;
    
    import java.io.File;
    import java.net.URL;
    
    import org.codelibs.core.net.URLUtil;
    import org.junit.Test;
    
    /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * ファイルの内容をバイト配列に読み込んで返します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return ファイルの内容を読み込んだバイト配列
         */
        public static byte[] readBytes(final File file) {
            assertArgumentNotNull("file", file);
    
            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

        public HtmlResponse edit(final EditForm form) {
            final String jspType = "view";
            final File jspFile = getJspFile(form.fileName, jspType);
            try {
                form.content = new String(FileUtil.readBytes(jspFile), Constants.UTF_8);
            } catch (final UnsupportedEncodingException e) {
                throw new FessSystemException("Invalid encoding", e);
            }
            saveToken();
            return asEditHtml(form);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if((read( tmp, 0, 1 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return tmp[0] != (byte)0x00;
        }
        public final byte readByte() throws SmbException {
            if((read( tmp, 0, 1 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return tmp[0];
        }
        public final int readUnsignedByte() throws SmbException {
    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)
  5. src/main/java/jcifs/pac/PacDataInputStream.java

        }
    
    
        public char readChar () throws IOException {
            align(2);
            return this.dis.readChar();
        }
    
    
        public byte readByte () throws IOException {
            return this.dis.readByte();
        }
    
    
        public short readShort () throws IOException {
            align(2);
            return Short.reverseBytes(this.dis.readShort());
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 21 21:19:58 GMT 2018
    - 5.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            if ( ( read(this.tmp, 0, 1) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[ 0 ] != (byte) 0x00;
        }
    
    
        @Override
        public final byte readByte () throws SmbException {
            if ( ( read(this.tmp, 0, 1) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[ 0 ];
        }
    
    
        @Override
    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)
Back to top