@Override public B next() { if (!hasNext()) throw new NoSuchElementException(); try { serializer.read(dis, store); } catch (final IOException e) { throw new RuntimeException(e); } read++; return store; }
/** Adds a new element at the end of this iterable. * * @param x the element to be added. * @throws IOException */ public void add(final T x) throws IOException { serializer.write(x, dos); size++; }
public B next() { if ( !hasNext() ) throw new NoSuchElementException(); try { serializer.read( dis, store ); } catch ( IOException e ) { throw new RuntimeException( e ); } read++; return store; }
/** Adds a new element at the end of this iterable. * * @param x the element to be added. * @throws IOException */ public void add( T x ) throws IOException { serializer.write( x, dos ); size++; }
public B next() { if ( !hasNext() ) throw new NoSuchElementException(); try { serializer.read( dis, store ); } catch ( IOException e ) { throw new RuntimeException( e ); } read++; return store; }
/** Adds a new element at the end of this iterable. * * @param x the element to be added. * @throws IOException */ public void add( T x ) throws IOException { serializer.write( x, dos ); size++; }