IoT CAS Frameworks/IOT_Applications/Admin_GUI_Application/source/SA-DeskAdminTool/src/java/OrderDetails/HttpRequestPoster.java
private static void pipe(Reader reader, Writer writer) throws IOException {
        char[] buf = new char[1024];
        int read = 0;
        log.info("=============== File Checking ===============");
        while ((read = reader.read(buf)) >= 0) {
            writer.write(buf, 0, read);
        }
        writer.flush();
    }
/**
     * Pipes everything from the reader to the writer via a buffer
     */
Pipes everything from the reader to the writer via a buffer
Pipes everything from the reader to the writer via a buffer
private static void pipe(Reader reader, Writer writer) throws IOException {
        char[] buf = new char[1024];
        int read = 0;
        log.info("=============== File Checking ===============");
        while ((read = reader.read(buf)) >= 0) {
            writer.write(buf, 0, read);
        }
        writer.flush();
    }
private static void pipe ( Reader reader , Writer writer ) throws IOException { char [ ] buf = new char [ 1024 ] ; int read = 0 ; log . info ( "=============== File Checking ===============" ) ; while ( ( read = reader . read ( buf ) ) >= 0 ) { writer . write ( buf , 0 , read ) ; } writer . flush ( ) ; }
Pipes everything from the reader to the writer via a buffer
Pipes everything from the reader to the writer via a buffer