Class DBInstanceIterator

  • All Implemented Interfaces:
    java.util.Iterator<Instance>

    public class DBInstanceIterator
    extends java.lang.Object
    implements java.util.Iterator<Instance>
    • Constructor Detail

      • DBInstanceIterator

        public DBInstanceIterator​(java.lang.String dbName)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • byteArrayToIntArray

        public static int[] byteArrayToIntArray​(byte[] src)
        Convert an array of bytes to an array of integers by copying the bits directly. Based on code at java2s.com.
      • getPipe

        public Pipe getPipe()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Instance>
      • next

        public Instance next()
        Specified by:
        next in interface java.util.Iterator<Instance>
      • getInstances

        public static InstanceList getInstances​(java.lang.String dbName)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cleanup

        public void cleanup()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Instance>