Examples of ArrayStack


Examples of mondrian.util.ArrayStack

        int childIndex;
    }

    public Walker(Walkable root)
    {
        stack = new ArrayStack();
        currentFrame = null;
        visit(null, root);
    }
View Full Code Here

Examples of net.yacy.kelondro.blob.ArrayStack

        final ReferenceFactory<ReferenceType> factory,
        final ByteOrder termOrder,
        final int termSize,
        IODispatcher merger) throws IOException {
        this.factory = factory;
        this.array = new ArrayStack(
            heapLocation,
            prefix,
            termOrder,
            termSize,
            0,
View Full Code Here

Examples of net.yacy.kelondro.blob.ArrayStack

            responseHeaderDB = new MapHeap(dbfile, Word.commonHashLength, Base64Order.enhancedCoder, 1024 * 1024, 100, ' ');
        } catch (final IOException e) {
            Log.logException(e);
        }
        try {
            fileDBunbuffered = new ArrayStack(new File(cachePath, FILE_DB_NAME), prefix, Base64Order.enhancedCoder, 12, 1024 * 1024 * 2, false);
            fileDBunbuffered.setMaxSize(maxCacheSize);
            fileDB = new Compressor(fileDBunbuffered, 2 * 1024 * 1024);
        } catch (IOException e) {
            Log.logException(e);
        }
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

     */
    public synchronized File getBaseDirRelative() {
        // Must first convert to absolute path names to ensure parents are available
        File parent = new File(DEFAULT_BASE).getAbsoluteFile();
        File f = base.getAbsoluteFile();
        ArrayStack l = new ArrayStack();
        while (f != null) {
            if (f.equals(parent)){
                if (l.isEmpty()){
                    break;
                }
                File rel = new File((String) l.pop());
                while(!l.isEmpty()) {
                    rel = new File(rel, (String) l.pop());
                }
                return rel;
            }
            l.push(f.getName());
            f = f.getParentFile();
        }
        return new File(".");
    }
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

        buffer.addAll(Arrays.asList(getFullElements()));
        return UnmodifiableBuffer.decorate(buffer);
    }
   
    public Collection makeConfirmedCollection() {
        ArrayStack list = new ArrayStack();
        return list;
    }
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

        ArrayStack list = new ArrayStack();
        return list;
    }

    public Collection makeConfirmedFullCollection() {
        ArrayStack list = new ArrayStack();
        list.addAll(Arrays.asList(getFullElements()));
        return list;
    }
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

    public void begin(String namespace, String name, Attributes attributes) throws Exception {
       
        if (ignoreCreateExceptions) {
       
            if (exceptionIgnoredStack == null) {
                exceptionIgnoredStack = new ArrayStack();
            }
           
            try {
                Object instance = getFactory(attributes).createObject(attributes);
               
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

        if (attributeName == null && !fromStack) {
            // We must wait to set the parameter until end
            // so that we can make sure that the right set of parameters
            // is at the top of the stack
            if (bodyTextStack == null) {
                bodyTextStack = new ArrayStack();
            }
            bodyTextStack.push(bodyText.trim());
        }

    }
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

     *
     * @param prefix Prefix to look up
     */
    public String findNamespaceURI(String prefix) {
       
        ArrayStack nsStack = (ArrayStack) namespaces.get(prefix);
        if (nsStack == null) {
            return null;
        }
        try {
            return ((String) nsStack.peek());
        } catch (EmptyStackException e) {
            return null;
        }

    }
View Full Code Here

Examples of org.apache.commons.collections.ArrayStack

        if (saxLog.isDebugEnabled()) {
            saxLog.debug("endPrefixMapping(" + prefix + ")");
        }

        // Deregister this prefix mapping
        ArrayStack stack = (ArrayStack) namespaces.get(prefix);
        if (stack == null) {
            return;
        }
        try {
            stack.pop();
            if (stack.empty())
                namespaces.remove(prefix);
        } catch (EmptyStackException e) {
            throw createSAXException("endPrefixMapping popped too many times");
        }
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.