Package palmed.io

Examples of palmed.io.IRecord


        if( !awake_.removeElement( cachable ) )
        {
            final int index = elements_.indexOf( cachable );
            if( index == -1 )
                throw new NoSuchElementException();
            final IRecord record = (IRecord)records_.elementAt( index );
            record.restore();
        }
        awake_.addElement( cachable );
        sleep();
    }
View Full Code Here


    {
        clear();
        do
        {
            final ICachable cachable = new Chunk( this );
            final IRecord record = factory_.createRecord( cachable );
            record.unmarshall( stream );
            elements_.addElement( cachable );
            records_.addElement( record );
            wake( cachable );
        }
        while( stream.available() > 0 );
View Full Code Here

    public void marshall( final OutputStream stream ) throws IOException
    {
        final Enumeration records = records_.elements();
        while( records.hasMoreElements() )
        {
            final IRecord record = (IRecord)records.nextElement();
            record.persist();
            record.marshall( stream );
        }
    }
View Full Code Here

TOP

Related Classes of palmed.io.IRecord

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.