- All Superinterfaces:
Encode
- All Known Implementing Classes:
PsqlWriter
,TextWriter
psql
command input for safe output.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.default Psql
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.default Psql
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.default Psql
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.encode
(MediaType contentType, MediaWritable<Ex> content) Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.encode
(MediaType contentType, IOSupplierE<?, Ex> content) Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.encode
(MediaType contentType, CharSequence csq) Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.encode
(MediaType contentType, CharSequence csq, int start, int end) Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.default PsqlWriter
psql()
Writes the givenpsql
command input with proper encoding.default Psql
psql
(char ch) Writes the givenpsql
command input with proper encoding.default Psql
psql
(char[] cbuf) Writes the givenpsql
command input with proper encoding.default Psql
psql
(char[] cbuf, int offset, int len) Writes the givenpsql
command input with proper encoding.psql
(PsqlWritable<Ex> psql) Writes the givenpsql
command input with proper encoding.psql
(IOSupplierE<?, Ex> psql) Writes the givenpsql
command input with proper encoding.default Psql
psql
(CharSequence csq) Writes the givenpsql
command input with proper encoding.default Psql
psql
(CharSequence csq, int start, int end) Writes the givenpsql
command input with proper encoding.default Psql
Writes the givenpsql
command input with proper encoding.
-
Method Details
-
encode
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.- Specified by:
encode
in interfaceEncode
- Returns:
this
writer- Throws:
IOException
-
encode
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.- Specified by:
encode
in interfaceEncode
- Returns:
this
writer- Throws:
IOException
-
encode
@Deprecated default Psql encode(MediaType contentType, char[] cbuf, int offset, int len) throws IOException Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.- Specified by:
encode
in interfaceEncode
- Returns:
this
writer- Throws:
IOException
-
encode
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.Adds prefixes and suffixes by media type, such as
"…"
.If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Specified by:
encode
in interfaceEncode
- Returns:
this
writer- Throws:
IOException
-
encode
@Deprecated Psql encode(MediaType contentType, CharSequence csq, int start, int end) throws IOException Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.Adds prefixes and suffixes by media type, such as
"…"
.If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Specified by:
encode
in interfaceEncode
- Returns:
this
writer- Throws:
IOException
-
encode
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.Adds prefixes and suffixes by media type, such as
"…"
.If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Specified by:
encode
in interfaceEncode
- Returns:
this
writer- Throws:
IOException
-
encode
@Deprecated default <Ex extends Throwable> Psql encode(MediaType contentType, IOSupplierE<?, Ex> content) throws IOException, ExDeprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.Adds prefixes and suffixes by media type, such as
"…"
.If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Specified by:
encode
in interfaceEncode
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Returns:
this
writer- Throws:
IOException
Ex
-
encode
@Deprecated default <Ex extends Throwable> Psql encode(MediaType contentType, MediaWritable<Ex> content) throws IOException, Ex Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding.Adds prefixes and suffixes by media type, such as
"…"
.Does not perform any translation markups.
- Specified by:
encode
in interfaceEncode
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Returns:
this
writer- Throws:
IOException
Ex
-
encode
Deprecated.Encoding of arbitrary content types is not expected since all supported types have per-type methods.Encodes the given nested type with proper encoding. This is well suited for use in a try-with-resources block.Adds prefixes and suffixes by media type, such as
"…"
.Does not perform any translation markups.
- Specified by:
encode
in interfaceEncode
- Returns:
- A new writer that may be used for the given content type.
This writer must be closed for completed calls to
MediaEncoder.writeSuffixTo(java.lang.Appendable, boolean)
.The returned writer will be of the specific subclass of
MediaWriter
matchingcontentType
(seeMediaType.getMediaWriterClass()
. This meansMediaWriter.getValidMediaInputType()
will becontentType
. - Throws:
IOException
-
psql
- Returns:
this
writer- Throws:
IOException
-
psql
- Returns:
this
writer- Throws:
IOException
-
psql
- Returns:
this
writer- Throws:
IOException
-
psql
Writes the givenpsql
command input with proper encoding.Adds prefixes and suffixes by media type.
If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Returns:
this
writer- Throws:
IOException
-
psql
Writes the givenpsql
command input with proper encoding.Adds prefixes and suffixes by media type.
If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Returns:
this
writer- Throws:
IOException
-
psql
Writes the givenpsql
command input with proper encoding.Adds prefixes and suffixes by media type.
If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Returns:
this
writer- Throws:
IOException
-
psql
Writes the givenpsql
command input with proper encoding.Adds prefixes and suffixes by media type.
If the string is translated, comments will be added giving the translation lookup id to aid in translation of server-translated values.
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Returns:
this
writer- Throws:
IOException
Ex
-
psql
Writes the givenpsql
command input with proper encoding.Adds prefixes and suffixes by media type.
Does not perform any translation markups.
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Returns:
this
writer- Throws:
IOException
Ex
-
psql
Writes the givenpsql
command input with proper encoding. This is well suited for use in a try-with-resources block.Adds prefixes and suffixes by media type.
Does not perform any translation markups.
- Returns:
- A new writer that may be used for arbitrary
psql
command input. This writer must be closed for completed calls toMediaEncoder.writeSuffixTo(java.lang.Appendable, boolean)
. - Throws:
IOException
-