Code example for PrintStream

Methods: print, write

0
        } 
 
    }*/ 
 
    protected void writeHead(PrintStream zStream, File zFile) throws IOException{
        zStream.print("HTTP/1.0 " + HTTP_OK +" OK");
        zStream.write(EOL);
        zStream.print("Server: Simple Android Java");
        zStream.write(EOL);
        zStream.print("Date: " + (new Date()));
        zStream.write(EOL);
        //zStream.print("Content-length: " + zFile.length()); 
        zStream.print("Content-length: 250000000");
        zStream.write(EOL);
        zStream.print("Last Modified: "  + (new Date()));
        zStream.write(EOL);
        zStream.print("Content-type: audio/mpeg");
        zStream.write(EOL);
        zStream.write(EOL);
    } 
 
    /*protected void writeFromStream(PrintStream zStream, File zFile, long[] zRange) throws IOException, InterruptedException{ 
        byte[] bytes = new byte[8192];