| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CRLF
Encoder flag bit to indicate lines should be terminated with a CRLF pair instead of just an LF. Has no effect if
NO_WRAP is specified as well. |
static int |
DEFAULT
Default values for encoder/decoder flags.
|
static int |
NO_CLOSE
Flag to pass to Base64OutputStream to indicate that it should not close the output stream it is wrapping when it itself is closed.
|
static int |
NO_PADDING
Encoder flag bit to omit the padding '=' characters at the end of the output (if any).
|
static int |
NO_WRAP
Encoder flag bit to omit all line terminators (i.e., the output will be on one long line).
|
static int |
URL_SAFE
Encoder/decoder flag bit to indicate using the "URL and filename safe" variant of Base64 (see RFC 3548 section 4) where
- and _ are used in place of + and /. |
| 限定符和类型 | 方法和说明 |
|---|---|
static kotlin.Array[] |
decode(java.lang.String str,
int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
|
static kotlin.Array[] |
decode(kotlin.Array[] input,
int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
|
static kotlin.Array[] |
decode(kotlin.Array[] input,
int offset,
int len,
int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
|
static kotlin.Array[] |
encode(kotlin.Array[] input,
int flags)
Base64-encode the given data and return a newly allocated byte[] with the result.
|
static kotlin.Array[] |
encode(kotlin.Array[] input,
int offset,
int len,
int flags)
Base64-encode the given data and return a newly allocated byte[] with the result.
|
static java.lang.String |
encodeToString(kotlin.Array[] input,
int flags)
Base64-encode the given data and return a newly allocated String with the result.
|
static java.lang.String |
encodeToString(kotlin.Array[] input,
int offset,
int len,
int flags)
Base64-encode the given data and return a newly allocated String with the result.
|
public static int DEFAULT
Default values for encoder/decoder flags.
public static int NO_PADDING
Encoder flag bit to omit the padding '=' characters at the end of the output (if any).
public static int NO_WRAP
Encoder flag bit to omit all line terminators (i.e., the output will be on one long line).
public static int CRLF
Encoder flag bit to indicate lines should be terminated with a CRLF pair instead of just an LF. Has no effect if NO_WRAP is specified as well.
public static int URL_SAFE
Encoder/decoder flag bit to indicate using the "URL and filename safe" variant of Base64 (see RFC 3548 section 4) where - and _ are used in place of + and /.
public static int NO_CLOSE
Flag to pass to Base64OutputStream to indicate that it should not close the output stream it is wrapping when it itself is closed.
public static kotlin.Array[] decode(java.lang.String str,
int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
The padding '=' characters at the end are considered optional, but if any are present, there must be the correct number of them.
str - org.jetbrains.dokka.NodeRenderContent@595273ef: the input String to decode, which is converted to bytes using the default charsetflags - org.jetbrains.dokka.NodeRenderContent@1fdc461f: controls certain features of the decoded output. Pass DEFAULT to decode standard Base64.IllegalArgumentException - if the input contains incorrect paddingpublic static kotlin.Array[] decode(kotlin.Array[] input,
int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
The padding '=' characters at the end are considered optional, but if any are present, there must be the correct number of them.
input - org.jetbrains.dokka.NodeRenderContent@69454d21: the input array to decodeflags - org.jetbrains.dokka.NodeRenderContent@14e3651d: controls certain features of the decoded output. Pass DEFAULT to decode standard Base64.IllegalArgumentException - if the input contains incorrect paddingpublic static kotlin.Array[] decode(kotlin.Array[] input,
int offset,
int len,
int flags)
Decode the Base64-encoded data in input and return the data in a new byte array.
The padding '=' characters at the end are considered optional, but if any are present, there must be the correct number of them.
input - org.jetbrains.dokka.NodeRenderContent@5ee4a165: the data to decodeoffset - org.jetbrains.dokka.NodeRenderContent@2375e818: the position within the input array at which to startlen - org.jetbrains.dokka.NodeRenderContent@601a9512: the number of bytes of input to decodeflags - org.jetbrains.dokka.NodeRenderContent@6fdecf81: controls certain features of the decoded output. Pass DEFAULT to decode standard Base64.IllegalArgumentException - if the input contains incorrect paddingpublic static java.lang.String encodeToString(kotlin.Array[] input,
int flags)
Base64-encode the given data and return a newly allocated String with the result.
input - org.jetbrains.dokka.NodeRenderContent@14cab496: the data to encodeflags - org.jetbrains.dokka.NodeRenderContent@18f3ab3f: controls certain features of the encoded output. Passing DEFAULT results in output that adheres to RFC 2045.public static java.lang.String encodeToString(kotlin.Array[] input,
int offset,
int len,
int flags)
Base64-encode the given data and return a newly allocated String with the result.
input - org.jetbrains.dokka.NodeRenderContent@2c751f36: the data to encodeoffset - org.jetbrains.dokka.NodeRenderContent@35ce7ffe: the position within the input array at which to startlen - org.jetbrains.dokka.NodeRenderContent@74e113d5: the number of bytes of input to encodeflags - org.jetbrains.dokka.NodeRenderContent@71cee425: controls certain features of the encoded output. Passing DEFAULT results in output that adheres to RFC 2045.public static kotlin.Array[] encode(kotlin.Array[] input,
int flags)
Base64-encode the given data and return a newly allocated byte[] with the result.
input - org.jetbrains.dokka.NodeRenderContent@75c6d985: the data to encodeflags - org.jetbrains.dokka.NodeRenderContent@33b1694c: controls certain features of the encoded output. Passing DEFAULT results in output that adheres to RFC 2045.public static kotlin.Array[] encode(kotlin.Array[] input,
int offset,
int len,
int flags)
Base64-encode the given data and return a newly allocated byte[] with the result.
input - org.jetbrains.dokka.NodeRenderContent@4fb2ab54: the data to encodeoffset - org.jetbrains.dokka.NodeRenderContent@49db814b: the position within the input array at which to startlen - org.jetbrains.dokka.NodeRenderContent@a926304: the number of bytes of input to encodeflags - org.jetbrains.dokka.NodeRenderContent@32d18013: controls certain features of the encoded output. Passing DEFAULT results in output that adheres to RFC 2045.