java.lang.Object
com.aoapps.encoding.MediaEncoder
com.aoapps.encoding.BufferedEncoder
- All Implemented Interfaces:
ValidMediaFilter
,ValidMediaInput
,ValidMediaOutput
,Encoder
- Direct Known Subclasses:
UrlInJavaScriptEncoder
,UrlInStyleEncoder
,UrlInXhtmlAttributeEncoder
,UrlInXhtmlEncoder
Buffers the content to perform final output on writeSuffix.
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal BufferedEncoder
append
(char c, Appendable out) final BufferedEncoder
append
(CharSequence csq, int start, int end, Appendable out) final BufferedEncoder
append
(CharSequence csq, Appendable out) final boolean
final void
final void
final void
final void
final void
protected abstract void
writeSuffix
(CharSequence buffer, Appendable out) final void
writeSuffixTo
(Appendable out, boolean trim) Methods inherited from class com.aoapps.encoding.MediaEncoder
getInstance, writePrefixTo, writeSuffixTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoapps.encoding.ValidMediaInput
canSkipValidation, getValidMediaInputType, isValidatingMediaInputType
Methods inherited from interface com.aoapps.encoding.ValidMediaOutput
getValidMediaOutputType
-
Constructor Details
-
BufferedEncoder
protected BufferedEncoder(int initialCapacity)
-
-
Method Details
-
isBuffered
public final boolean isBuffered()- Returns:
true
since buffered
-
write
- Specified by:
write
in interfaceEncoder
- Specified by:
write
in classMediaEncoder
-
write
- Specified by:
write
in interfaceEncoder
- Specified by:
write
in classMediaEncoder
-
write
- Specified by:
write
in interfaceEncoder
- Specified by:
write
in classMediaEncoder
-
write
- Specified by:
write
in interfaceEncoder
- Specified by:
write
in classMediaEncoder
-
write
- Specified by:
write
in interfaceEncoder
- Specified by:
write
in classMediaEncoder
-
append
- Specified by:
append
in interfaceEncoder
- Specified by:
append
in classMediaEncoder
-
append
- Specified by:
append
in interfaceEncoder
- Specified by:
append
in classMediaEncoder
-
append
- Specified by:
append
in interfaceEncoder
- Specified by:
append
in classMediaEncoder
-
writeSuffixTo
Description copied from class:MediaEncoder
This default implementation validates media types in assertion but writes nothing.
- Specified by:
writeSuffixTo
in interfaceEncoder
- Overrides:
writeSuffixTo
in classMediaEncoder
- Throws:
IOException
-
writeSuffix
- Throws:
IOException
-