Example usage for Java org.apache.shiro.codec CodecSupport fields, constructors, methods, implement or subclass
The text is from its open source code.
byte[] | toBytes(char[] chars) Converts the specified character array to a byte array using the Shiro's preferred encoding (UTF-8). |
byte[] | toBytes(String source) Converts the specified source argument to a byte array with Shiro's CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING . |
byte[] | toBytes(Object o) Converts the specified Object into a byte array. |
byte[] | toBytes(File file) |
byte[] | toBytes(InputStream in) Converts the specified InputStream InputStream into a byte array. |
byte[] | toBytes(char[] chars, String encoding) Converts the specified character array into a byte array using the specified character encoding. |
byte[] | toBytes(String source, String encoding) Converts the specified source to a byte array via the specified encoding, throwing a CodecException CodecException if the encoding fails. |
String | toString(byte[] bytes) Converts the specified byte array to a String using the CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING . |
String | toString(Object o) Converts the specified Object into a String. |
String | toString(byte[] bytes, String encoding) Converts the specified byte array to a String using the specified character encoding. |