public class MockJspWriter extends JspWriterEE
JspWriterEE クラスのモック実装。カスタム JSP タグをテストするときにアプリケーションをテストする場合にのみ必要です。autoFlushEE, bufferSizeEE, DEFAULT_BUFFEREE, NO_BUFFEREE, UNBOUNDED_BUFFEREE| コンストラクターと説明 |
|---|
MockJspWriter(HttpServletResponseEE response) レスポンスのデフォルトのライターを使用して、指定されたレスポンスの MockJspWriter を作成します。 |
MockJspWriter(HttpServletResponseEE response, WriterSE targetWriter) 指定されたレスポンスに対して MockJspWriter を作成します。 |
MockJspWriter(WriterSE targetWriter) 指定されたプレーンライターの MockJspWriter を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | clear() |
void | clearBuffer() |
void | close() |
void | flush() |
int | getRemaining() |
protected PrintWriterSE | getTargetWriter() ターゲット Writer を遅延初期化します。 |
void | newLine() |
void | print(boolean value) |
void | print(char value) |
void | print(char[] value) |
void | print(double value) |
void | print(float value) |
void | print(int value) |
void | print(long value) |
void | print(ObjectSE value) |
void | print(StringSE value) |
void | println() |
void | println(boolean value) |
void | println(char value) |
void | println(char[] value) |
void | println(double value) |
void | println(float value) |
void | println(int value) |
void | println(long value) |
void | println(ObjectSE value) |
void | println(StringSE value) |
void | write(char[] value, int offset, int length) |
getBufferSizeEE, isAutoFlushEEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic MockJspWriter(HttpServletResponseEE response)
response - ラップするサーブレットのレスポンス public MockJspWriter(WriterSE targetWriter)
targetWriter - ラップするターゲットライター public MockJspWriter(@Nullable HttpServletResponseEE response, @Nullable WriterSE targetWriter)
response - ラップするサーブレットのレスポンス targetWriter - ラップするターゲットライター protected PrintWriterSE getTargetWriter() throws IOExceptionSE
public void clear()
throws IOExceptionSEJspWriterEE の clearEE IOExceptionSEpublic void clearBuffer()
throws IOExceptionSEJspWriterEE の clearBufferEE IOExceptionSEpublic void flush()
throws IOExceptionSEFlushableSE の flushSE JspWriterEE の flushEE IOExceptionSEpublic void close()
throws IOExceptionSECloseableSE の closeSE AutoCloseableSE の closeSE JspWriterEE の closeEE IOExceptionSEpublic int getRemaining()
JspWriterEE の getRemainingEE public void newLine()
throws IOExceptionSEJspWriterEE の newLineEE IOExceptionSEpublic void write(char[] value,
int offset,
int length)
throws IOExceptionSEWriterSE の writeSE IOExceptionSEpublic void print(boolean value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(char value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(char[] value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(double value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(float value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(int value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(long value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(ObjectSE value) throws IOExceptionSE
JspWriterEE の printEE IOExceptionSEpublic void print(StringSE value) throws IOExceptionSE
JspWriterEE の printEE IOExceptionSEpublic void println()
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(boolean value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(char value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(char[] value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(double value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(float value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(int value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(long value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(ObjectSE value) throws IOExceptionSE
JspWriterEE の printlnEE IOExceptionSEpublic void println(StringSE value) throws IOExceptionSE
JspWriterEE の printlnEE IOExceptionSE