java 中有没有内存流,可以先写入数据,再读取数据
实现先进行Stream.Write(byte[])   然后进行Stream.ReadInt(),,将字节数组转换成Int,应该怎么作
------解决方案--------------------PipedInputStream is = new PipedInputStream(); 
 PipedOutputStream os = new PipedOutputStream(is); 
 os.write( "AA ".getBytes()); 
 System.out.println(is.available());     
 如果需要你可以再new DataInputStream(is)这样