Package Name: java.io.printstream

Return to: Package List


with java.io.FilterOutputStream; use java.io.FilterOutputStream;
with java.lang.String; use java.lang.String;
with java.io.OutputStream; use java.io.OutputStream;
with java.lang; use java.lang;

package java.io.PrintStream is
    type PrintStream_Obj is new FilterOutputStream_Obj with null record;

    type PrintStream_Ptr is access all PrintStream_Obj'Class;
    function new_PrintStream(
        stdout : OutputStream_Ptr;
        Obj : PrintStream_Ptr := null)

      return PrintStream_Ptr;
    function new_PrintStream(
        stdout : OutputStream_Ptr;
        autoflush : Boolean;
        Obj : PrintStream_Ptr := null)

      return PrintStream_Ptr;
    procedure write(Obj : access PrintStream_Obj;

        b : Integer);
    procedure write(Obj : access PrintStream_Obj;
        b : String;
        off : Integer;

        len : Integer);

    procedure flush(Obj : access PrintStream_Obj);

    procedure close(Obj : access PrintStream_Obj);

    function checkError(Obj : access PrintStream_Obj) return Boolean;
    procedure print(stream : access PrintStream_Obj;

        obj : Object_Ptr);
    procedure print(Obj : access PrintStream_Obj;

        s : String_Ptr);
    procedure print(Obj : access PrintStream_Obj;

        s : Wide_String);
    procedure print(Obj : access PrintStream_Obj;

        c : Wide_Character);
    procedure print(Obj : access PrintStream_Obj;

        i : Integer);
    procedure print(Obj : access PrintStream_Obj;

        l : Long_Integer);
    procedure print(Obj : access PrintStream_Obj;

        f : Float);
    procedure print(Obj : access PrintStream_Obj;

        d : Long_Float);
    procedure print(Obj : access PrintStream_Obj;

        b : Boolean);

    procedure println(Obj : access PrintStream_Obj);
    procedure println(stream : access PrintStream_Obj;

        obj : Object_Ptr);
    procedure println(Obj : access PrintStream_Obj;

        s : String_Ptr);
    procedure println(Obj : access PrintStream_Obj;

        s : Wide_String);
    procedure println(Obj : access PrintStream_Obj;

        c : Wide_Character);
    procedure println(Obj : access PrintStream_Obj;

        i : Integer);
    procedure println(Obj : access PrintStream_Obj;

        l : Long_Integer);
    procedure println(Obj : access PrintStream_Obj;

        f : Float);
    procedure println(Obj : access PrintStream_Obj;

        d : Long_Float);
    procedure println(Obj : access PrintStream_Obj;

        b : Boolean);
    pragma Import(Java, flush);
    pragma Import(Java, println);
    pragma Import(Java, close);
    pragma Import(Java, print);
    pragma Import(Java, write);

    pragma Import(Java, checkError);

    pragma Import(Java_Constructor, new_PrintStream);
end java.io.PrintStream;