1#include <iostream>
2
3#include <IO/WriteBufferFromFileDescriptor.h>
4#include <IO/ReadBufferFromFileDescriptor.h>
5#include <IO/WriteBufferValidUTF8.h>
6#include <IO/copyData.h>
7
8int main(int argc, char **argv)
9{
10 DB::ReadBufferFromFileDescriptor rb(STDIN_FILENO);
11 DB::WriteBufferFromFileDescriptor wb(STDOUT_FILENO);
12 DB::WriteBufferValidUTF8 utf8_b(wb);
13 DB::copyData(rb, utf8_b);
14 return 0;
15}
16