Summary of out object methods in JSP

Source: Internet
Author: User
The out object is encapsulated as the javax. servlet. jsp. jspwriter interface. You can obtain the out object by calling the pagecontext. getout () method.

1.Public abstract void clear ()
Clear the content in the buffer and do not send data to the client.

2.Public abstract void clearbuffer ()
After the data is sent to the client, the content in the buffer is cleared.

3.Public Abstarct void close ()
Close the output stream.

4.Public abstract void flush ()
Output Data in the buffer.

5.Public int getbuffersize ()
Obtain the buffer size. The buffer size can be set by <% @ page buffer = "size" %>.

6.Public abstract int getremainning ()
Obtains the size of the remaining buffer space.

7.Public Boolean isautoflush ()
Obtain the autoflush value set with <% @ page is autoflush = "True/false" %>.

8.Public abstract void newline ()
Output A line feed character for another line.

9.Public abstract void print ()
Displays various data types.

10.Public abstract void println ()
The branch displays various data types.
 

Related Article

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.