<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com java:io:printstream</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T16:45:43+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/checkerror?rev=1708042321&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/close?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/flush?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/print?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/println?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>append</title>
        <link>https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff</link>
        <description>Appends a CharSequence


append(char): PrintStream
append(CharSequence): PrintStream
append(CharSequence, int start, int end): PrintStream

return value: PrintStream


Language Example



        int i = 42;
        StringBuffer buf = new StringBuffer(42);
        buf.append(i);
        buf.append(&quot; is a answer to a nice question&quot;);
        System.out.println(buf);</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/checkerror?rev=1708042321&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:01+02:00</dc:date>
        <title>checkError</title>
        <link>https://code-reference.com/java/io/printstream/checkerror?rev=1708042321&amp;do=diff</link>
        <description>Flush the stream and return the value of error flag


checkError(); 

return value: boolean true/false


Language Example



no example jet



output
   output for example</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/close?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>close</title>
        <link>https://code-reference.com/java/io/printstream/close?rev=1708042322&amp;do=diff</link>
        <description>Close and flush the print stream.


close(); 

return value: if IO error true otherwise false


Language Example



no example jet



output
   output for example</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/flush?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>flush</title>
        <link>https://code-reference.com/java/io/printstream/flush?rev=1708042322&amp;do=diff</link>
        <description>After all pending data is send to stream the stream will be flushed


flush(); 

return value: boolean true/false


Language Example



 no example jet



output
   no output jet</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-15T09:30:44+02:00</dc:date>
        <title>format</title>
        <link>https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff</link>
        <description>format args to the format string format and write the result to the stream


format(String format, Object... args);

return value: stream

 sign  Description  0 if the place is not busy they prints a 0	# if the place is not busy they prints nothing	. decimal separator Separates and decimal places.	, Groups the numbers (a group is as large as the distance from ”,” to ”.”).	; Delimiter. To the left of the pattern is positive, the right for negative numbers.	- The default character for the negative…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/print?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>print</title>
        <link>https://code-reference.com/java/io/printstream/print?rev=1708042322&amp;do=diff</link>
        <description>Outputs the string parameter without a line return


print(parameter): void

parameters are:
boolean, char, char[], double, float, int, long, Object, String

return value: void


Language Example


        System.out.print(&quot;Hello&quot;);
        System.out.print(&quot;I am a programmer&quot;);</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/println?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>println</title>
        <link>https://code-reference.com/java/io/printstream/println?rev=1708042322&amp;do=diff</link>
        <description>This line outputs the string parameter to the console with a line return.


println(parameter): void

parameters are:
boolean, char, char[], double, float, int, long, Object, String



Language Example


        System.out.println(&quot;Hello&quot;);
        System.out.println(&quot;I am a programmer&quot;);
        
        System.out.println(&quot; 3 + 4 = &quot; + 3+4 ); // appends 3 and 4 to the string
        System.out.println(&quot; 3 + 4 = &quot; + (3+4) ); // calculate 3+4 before the string &quot;7&quot; added</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-09-09T09:07:22+02:00</dc:date>
        <title>write</title>
        <link>https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff</link>
        <description>Writes count or one byte to target stream/buffer.


write(int oneByte);
write(byte[] buffer, int offset, int length);



Language Example



      try(    //Try-with-resource-block
            FileWriter stream = new FileWriter(&quot;output.txt&quot;); // create file 
            BufferedWriter output = new BufferedWriter(stream);
         ) {
     
        output.write(&quot;Hello Harddisk&quot;);             // Write to Stream
       //This is an auto-closable block so no need of &quot;output.close();&quot;
       }
      …</description>
    </item>
</rdf:RDF>
