- 349 名前:デフォルトの名無しさん mailto:sage [2007/04/13(金) 00:26:49 ]
- PipedInputStreamに1024バイト以上のデータを突っ込むとだんまりするんだけどなんで?
PipedOutputStream pos = null;PipedInputStream pis = null;DataOutputStream dos = null; try{ pos = new PipedOutputStream();pis = new PipedInputStream(pos); dos = new DataOutputStream(pos); for(int i = 0; i < 2048; i++){ dos.writeByte(1); } }catch(IOException e){ e.printStackTrace(); }finally{ try{ dos.close();pis.close(); pos.close(); }catch(IOException e){ e.printStackTrace(); } }
|

|