Code example for PrintStream

Methods: print

0
    @Override 
    public void print(byte[] b, int s, int l, PrintStream ps) throws AlgebricksException {
        int months = AInt32SerializerDeserializer.getInt(b, s + 1);
        long milliseconds = AInt64SerializerDeserializer.getLong(b, s + 5);
 
        ps.print("{ duration: {");
        ps.print("months: ");
        ps.print(months);
        ps.print("millis: ");
        ps.print(milliseconds);
        ps.print("}}");
    } 
}