"Turn" closeable, readable, flushable, appendable

Source: Internet
Author: User

Closeable:

 Package java.io; Import java.io.IOException;  Public Interface closeable {    /**     * Closes this stream and releases any system resources associated     * W ITH it. If The stream is already closed then invoking this      * method has no effect.       */     Public void throws IOException;}

Readable:

 Package Java.lang; Import java.io.IOException;  Public Interface readable {    /**     * Attempts to read characters into the specified character buffer.     * The buffer is used as a repository of characters as-is:the only     * Changes made is the results of a put operation. No flipping or     * rewinding of the buffer is performed.      */     Public int throws IOException;}
Flushable:
 Package java.io; Import java.io.IOException;  Public Interface flushable {    /**     * Flushes this stream by writing any buffered output to the underlying STR Eam.      */    void throws IOException;}

Appendable:

 PackageJava.lang;Importjava.io.IOException; Public Interfaceappendable {/*** Appends the specified character sequence to this appendable. * @returnA Reference to this appendable*/appendable Append (charsequence csq)throwsIOException; /*** Appends a subsequence of the specified character sequence to this appendable. * @returnA Reference to this appendable*/appendable Append (charsequence csq,intStartintEndthrowsIOException; /*** Appends the specified character to this appendable. * @returnA Reference to this appendable*/appendable Append (CharCthrowsIOException;}

Turn from: 43093435

"Turn" closeable, readable, flushable, appendable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.