java.lang.Object
org.postgresql.pljava.model.CharsetEncoding.Any
- All Implemented Interfaces:
CharsetEncoding
- Enclosing interface:
CharsetEncoding
A distinguished
CharsetEncoding
representing uses such as
-1
in the collencoding
column of pg_collation
,
indicating the collation is usable with any encoding.
This returns -1 from ordinal()
and null
or false
from the other non-default methods according to their types. The only
instance of this class is CharsetEncoding.ANY
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.model.CharsetEncoding
CharsetEncoding.Any
-
Field Summary
Fields inherited from interface org.postgresql.pljava.model.CharsetEncoding
ANY, SERVER_ENCODING
-
Method Summary
Modifier and TypeMethodDescriptioncharset()
Returns the corresponding JavaCharset
, or null if none can be identified.icuName()
Returns the name identifying this encoding in ICU (international components for Unicode), or null if its implementation in PostgreSQL does not define one.name()
Returns the PostgreSQL name for this encoding.int
ordinal()
Returns the PostgreSQL encoding number (as used in theencoding
columns of some system catalogs) for this encoding.toString()
boolean
Indicates whether this encoding is usable as a server encoding.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.postgresql.pljava.model.CharsetEncoding
decode, decode, encode, encode, newDecoder, newEncoder, reader, writer
-
Method Details
-
ordinal
public int ordinal()Description copied from interface:CharsetEncoding
Returns the PostgreSQL encoding number (as used in theencoding
columns of some system catalogs) for this encoding.- Specified by:
ordinal
in interfaceCharsetEncoding
-
name
Description copied from interface:CharsetEncoding
Returns the PostgreSQL name for this encoding.The PostgreSQL encoding names have a long history and may not match cleanly with more standardized names in modern libraries.
- Specified by:
name
in interfaceCharsetEncoding
-
icuName
Description copied from interface:CharsetEncoding
Returns the name identifying this encoding in ICU (international components for Unicode), or null if its implementation in PostgreSQL does not define one.When present, the ICU name can be a better choice for matching encodings in other libraries.
- Specified by:
icuName
in interfaceCharsetEncoding
-
usableOnServer
public boolean usableOnServer()Description copied from interface:CharsetEncoding
Indicates whether this encoding is usable as a server encoding.- Specified by:
usableOnServer
in interfaceCharsetEncoding
-
charset
Description copied from interface:CharsetEncoding
Returns the corresponding JavaCharset
, or null if none can be identified.- Specified by:
charset
in interfaceCharsetEncoding
-
toString
-