Applied io.Pipe.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>