JSP built-in object detailed

Source: Internet
Author: User

①out-javax.servlet.jsp.jspwriter
The Out object is used to output the results to the Web page.

Method:
1. void clear ();
Clears the contents of the output buffer, but does not output to the client.

2. void Clearbuffer ();
Clears the contents of the output buffer and outputs it to the client.

3. void Close ();
Closes the output stream and clears all content.

4. void Flush ();
The data inside the output buffer.

5. int getbuffersize ();
Gets the current buffer size in kilobytes.

6. int getremaining ();
Gets the amount of space that is not occupied in a buffer in kilobytes.

7. Boolean Isautoflush ();
Whether the buffer is automatically refreshed.

8. void newline ();
Output a newline character.

9. Void Print (Boolean B);
void print (char c);
void print (char[] s);
void print (double d);
void print (float f);
void print (int i);
void print (long L);
void print (Object obj);
void print (String s);
Outputs the specified type of data to the HTTP stream without wrapping.

void println (Boolean B);
void println (char c);
void println (char[] s);
void println (double D);
void println (float f);
void println (int i);
void println (long L);
void println (Object obj);
void println (String s);
Outputs the specified type of data to the HTTP stream and outputs a newline character.

Appendable append (char c);
Appendable Append (charsequence cxq, int start, int end);
Appendable Append (charsequence cxq);
Adds a character or an object that implements the Charsequence interface to the back of the output stream.

<
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.