Interface Mysql

All Superinterfaces:
Encode
All Known Implementing Classes:
MysqlWriter, TextWriter

@ThreadSafe public interface Mysql extends Encode
Encodes mysql command input for safe output.
Author:
AO Industries, Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(MediaType contentType)
    Deprecated.
    Encoding of arbitrary content types is not expected since all supported types have per-type methods.
    default Mysql
    encode(MediaType contentType, char ch)
    Deprecated.
    Encoding of arbitrary content types is not expected since all supported types have per-type methods.
    default Mysql
    encode(MediaType contentType, char[] cbuf)
    Deprecated.
    Encoding of arbitrary content types is not expected since all supported types have per-type methods.
    default Mysql
    encode(MediaType contentType, char[] cbuf, int offset, int len)
    Deprecated.
    Encoding of arbitrary content types is not expected since all supported types have per-type methods.
    default <Ex extends Throwable>
    Mysql
    encode(MediaType contentType, MediaWritable<Ex> content)
    Deprecated.
    Encoding of arbitrary content types is not expected since all supported types have per-type methods.
    default <Ex extends Throwable>
    Mysql
    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.
    encode(MediaType contentType, Object content)
    Deprecated.
    Encoding of arbitrary content types is not expected since all supported types have per-type methods.
    default MysqlWriter
    Writes the given mysql command input with proper encoding.
    default Mysql
    mysql(char ch)
    Writes the given mysql command input with proper encoding.
    default Mysql
    mysql(char[] cbuf)
    Writes the given mysql command input with proper encoding.
    default Mysql
    mysql(char[] cbuf, int offset, int len)
    Writes the given mysql command input with proper encoding.
    default <Ex extends Throwable>
    Mysql
    mysql(MysqlWritable<Ex> mysql)
    Writes the given mysql command input with proper encoding.
    default <Ex extends Throwable>
    Mysql
    mysql(IOSupplierE<?,Ex> mysql)
    Writes the given mysql command input with proper encoding.
    default Mysql
    Writes the given mysql command input with proper encoding.
    default Mysql
    mysql(CharSequence csq, int start, int end)
    Writes the given mysql command input with proper encoding.
    default Mysql
    mysql(Object mysql)
    Writes the given mysql command input with proper encoding.
  • Method Details

    • encode

      @Deprecated default Mysql encode(MediaType contentType, char ch) 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 "…".

      Specified by:
      encode in interface Encode
      Returns:
      this writer
      Throws:
      IOException
    • encode

      @Deprecated default Mysql encode(MediaType contentType, char[] cbuf) 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 "…".

      Specified by:
      encode in interface Encode
      Returns:
      this writer
      Throws:
      IOException
    • encode

      @Deprecated default Mysql 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.

      Adds prefixes and suffixes by media type, such as "…".

      Specified by:
      encode in interface Encode
      Returns:
      this writer
      Throws:
      IOException
    • encode

      @Deprecated Mysql encode(MediaType contentType, CharSequence csq) 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 interface Encode
      Returns:
      this writer
      Throws:
      IOException
    • encode

      @Deprecated Mysql 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 interface Encode
      Returns:
      this writer
      Throws:
      IOException
    • encode

      @Deprecated Mysql encode(MediaType contentType, Object content) 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 interface Encode
      Returns:
      this writer
      Throws:
      IOException
    • encode

      @Deprecated default <Ex extends Throwable> Mysql encode(MediaType contentType, IOSupplierE<?,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 "…".

      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 interface Encode
      Type Parameters:
      Ex - An arbitrary exception type that may be thrown
      Returns:
      this writer
      Throws:
      IOException
      Ex
    • encode

      @Deprecated default <Ex extends Throwable> Mysql 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 interface Encode
      Type Parameters:
      Ex - An arbitrary exception type that may be thrown
      Returns:
      this writer
      Throws:
      IOException
      Ex
    • encode

      @Deprecated MediaWriter encode(MediaType contentType) 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. 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 interface Encode
      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 matching contentType (see MediaType.getMediaWriterClass(). This means MediaWriter.getValidMediaInputType() will be contentType.

      Throws:
      IOException
    • mysql

      default Mysql mysql(char ch) throws IOException
      Writes the given mysql command input with proper encoding.

      Adds prefixes and suffixes by media type.

      Returns:
      this writer
      Throws:
      IOException
    • mysql

      default Mysql mysql(char[] cbuf) throws IOException
      Writes the given mysql command input with proper encoding.

      Adds prefixes and suffixes by media type.

      Returns:
      this writer
      Throws:
      IOException
    • mysql

      default Mysql mysql(char[] cbuf, int offset, int len) throws IOException
      Writes the given mysql command input with proper encoding.

      Adds prefixes and suffixes by media type.

      Returns:
      this writer
      Throws:
      IOException
    • mysql

      default Mysql mysql(CharSequence csq) throws IOException
      Writes the given mysql 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
    • mysql

      default Mysql mysql(CharSequence csq, int start, int end) throws IOException
      Writes the given mysql 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
    • mysql

      default Mysql mysql(Object mysql) throws IOException
      Writes the given mysql 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
    • mysql

      default <Ex extends Throwable> Mysql mysql(IOSupplierE<?,Ex> mysql) throws IOException, Ex
      Writes the given mysql 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
    • mysql

      default <Ex extends Throwable> Mysql mysql(MysqlWritable<Ex> mysql) throws IOException, Ex
      Writes the given mysql 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
    • mysql

      default MysqlWriter mysql() throws IOException
      Writes the given mysql 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 mysql command input. This writer must be closed for completed calls to MediaEncoder.writeSuffixTo(java.lang.Appendable, boolean).
      Throws:
      IOException