我的问道是怎样才能阅读/写给 Java的灯塔管道? 我已经使用了java.io.RandomAccess。 档案
RandomAccessFile file = new RandomAccessFile("/dev/zap/16", "rw");
并且随后将其传给工人读物,在每两条ms子之后读写
byte[] buffer = new byte[16];
file.read(buffer);
它从管道中读过,但我怀疑有些 by子是虚构的。 你们是否知道气味(ubuntu)是如何处理管道的缓冲?