@Override public Bundle peek() throws DataChannelError { if (nextBundle == null) { try { nextBundle = bundleizer.next(); } catch (Exception e) { throw new RuntimeException(e); } } return nextBundle; }
@Override public Bundle next() throws DataChannelError { if (nextBundle != null) { Bundle result = nextBundle; nextBundle = null; return result; } else { try { return bundleizer.next(); } catch (Exception e) { throw new RuntimeException(e); } } }