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