fork download
  1.  
  2.  
  3. import java.io.BufferedInputStream;
  4. import java.io.ByteArrayInputStream;
  5.  
  6.  
  7. public class Main {
  8.  
  9.  
  10. public static void main(String[] args) throws Exception {
  11.  
  12. // [0, 1, 2, ..., 119]
  13. byte[] src = new byte[40 * 3];
  14. for (byte b = 0; b < src.length; b ++) {
  15. src[b] = b;
  16. }
  17.  
  18.  
  19. byte[] bytes = new byte[4];
  20.  
  21. while(bis.read(bytes) != -1) {
  22.  
  23. System.out.print(bytes[0]);
  24. System.out.print(" ");
  25.  
  26. boolean 特定の条件 = false;
  27.  
  28. if (特定の条件) {
  29.  
  30. // 後続処理に進む
  31.  
  32. } else {
  33.  
  34. bis.skip(40 - 4);
  35. bis.readNBytes(40); // bis.read(40); はコンパイルエラー
  36. }
  37. }
  38. }
  39. }
  40.  
Success #stdin #stdout 0.07s 54572KB
stdin
Standard input is empty
stdout
0 80