Package org.exist.storage.io

Examples of org.exist.storage.io.VariableByteInputStream


       
        //create a new permission instance
        SimpleACLPermission permission2 = new SimpleACLPermission(mockSecurityManager);
       
        //read the acl in
        permission2.read(new VariableByteInputStream(new ByteArrayInputStream(data)));
       
        assertEquals(2, permission2.getACECount());
       
        assertEquals(ACE_ACCESS_TYPE.ALLOWED, permission2.getACEAccessType(0));
        assertEquals(userId1, permission2.getACEId(0));
View Full Code Here


     * @throws EXistException
     */
    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

Related Classes of org.exist.storage.io.VariableByteInputStream

Copyright © 2018 www.massapicom. 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.