Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
java.io

Class PipedWriter

    • Constructor Detail

      • PipedWriter

        public PipedWriter(PipedReader snk)
                    throws IOException
        Creates a piped writer connected to the specified piped reader. Data characters written to this stream will then be available as input from snk.
        Parameters:
        snk - The piped reader to connect to.
        Throws:
        IOException - if an I/O error occurs.
    • Method Detail

      • connect

        public void connect(PipedReader snk)
                     throws IOException
        Connects this piped writer to a receiver. If this object is already connected to some other piped reader, an IOException is thrown.

        If snk is an unconnected piped reader and src is an unconnected piped writer, they may be connected by either the call:

         src.connect(snk)
        or the call:
         snk.connect(src)
        The two calls have the same effect.
        Parameters:
        snk - the piped reader to connect to.
        Throws:
        IOException - if an I/O error occurs.
      • write

        public void write(int c)
                   throws IOException
        Writes the specified char to the piped output stream. If a thread was reading data characters from the connected piped input stream, but the thread is no longer alive, then an IOException is thrown.

        Implements the write method of Writer.

        Overrides:
        write in class Writer
        Parameters:
        c - the char to be written.
        Throws:
        IOException - if the pipe is broken, unconnected, closed or an I/O error occurs.
      • write

        public void write(char[] cbuf,
                 int off,
                 int len)
                   throws IOException
        Writes len characters from the specified character array starting at offset off to this piped output stream. This method blocks until all the characters are written to the output stream. If a thread was reading data characters from the connected piped input stream, but the thread is no longer alive, then an IOException is thrown.
        Specified by:
        write in class Writer
        Parameters:
        cbuf - the data.
        off - the start offset in the data.
        len - the number of characters to write.
        Throws:
        IOException - if the pipe is broken, unconnected, closed or an I/O error occurs.
      • flush

        public void flush()
                   throws IOException
        Flushes this output stream and forces any buffered output characters to be written out. This will notify any readers that characters are waiting in the pipe.
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in class Writer
        Throws:
        IOException - if the pipe is closed, or an I/O error occurs.
      • close

        public void close()
                   throws IOException
        Closes this piped output stream and releases any system resources associated with this stream. This stream may no longer be used for writing characters.
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in class Writer
        Throws:
        IOException - if an I/O error occurs.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/io/pipedwriter.html/.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut