用JAVA模拟BigPipe