以下のコードを実行すると: import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; public class InputStreamTest { static class MyInputStream extends InputStream { int pos; byte[] data = "HelloWorld".getBytes(); @Override public int read() throws IOException { System.out.println("pos:" + pos + " data.length:" + data.length); if (pos < data.length) { return data[pos++]; } else