Examples of readFixedInt()


Examples of org.exist.storage.io.VariableByteInput.readFixedInt()

     */
    private synchronized void loadSymbols() throws EXistException {
        try {
            final FileInputStream fis = new FileInputStream(getFile());
            final VariableByteInput is = new VariableByteInputStream(fis);
            final int magic = is.readFixedInt();
            if(magic == LEGACY_FILE_FORMAT_VERSION_ID) {
                LOG.info("Converting legacy symbols.dbx to new format...");
                readLegacy(is);
                saveSymbols();
            } else if(magic != FILE_FORMAT_VERSION_ID) {
View Full Code Here

Examples of org.exist.storage.io.VariableByteInput.readFixedInt()

            try {

                while( is.available() > 0 ) {
                    final int          storedDocId    = is.readInt();
                    final int          gidsCount      = is.readInt();
                    final int          size           = is.readFixedInt();
                    final DocumentImpl storedDocument = docs.getDoc( storedDocId );

                    //Exit if the document is not concerned
                    if( storedDocument == null ) {
                        is.skipBytes( size );
View Full Code Here

Examples of org.exist.storage.io.VariableByteInput.readFixedInt()

                while( is.available() > 0 ) {
                    boolean      docAdded       = false;
                    final int          storedDocId    = is.readInt();
                    final int          gidsCount      = is.readInt();
                    final int          size           = is.readFixedInt();
                    final DocumentImpl storedDocument = docs.getDoc( storedDocId );

                    //Exit if the document is not concerned
                    if( storedDocument == null ) {
                        is.skipBytes( size );
View Full Code Here

Examples of org.exist.storage.io.VariableByteInputStream.readFixedInt()

     */
    private synchronized void loadSymbols() throws EXistException {
        try {
            final FileInputStream fis = new FileInputStream(getFile());
            final VariableByteInput is = new VariableByteInputStream(fis);
            final int magic = is.readFixedInt();
            if(magic == LEGACY_FILE_FORMAT_VERSION_ID) {
                LOG.info("Converting legacy symbols.dbx to new format...");
                readLegacy(is);
                saveSymbols();
            } else if(magic != FILE_FORMAT_VERSION_ID) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.