Esempio n. 1
0
 @Override
 public Bundle peek() throws DataChannelError {
   if (nextBundle == null) {
     try {
       nextBundle = bundleizer.next();
     } catch (Exception e) {
       throw new RuntimeException(e);
     }
   }
   return nextBundle;
 }
Esempio n. 2
0
 @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);
     }
   }
 }