public final class Base64 extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] input)
Decode the given input.
|
static byte[] |
decode(byte[] input,
int offset,
int length)
Decode the given input.
|
static byte[] |
decode(ByteBuffer input)
Decode the given input.
|
static byte[] |
decode(CharBuffer input)
Decode the given input.
|
static byte[] |
decode(String input)
Decode the given input.
|
static int |
decode4BytesBase64(byte[] inputBuffer,
byte[] outputBuffer)
Decode the 4 input bytes of the inputBuffer, into the outputBuffer that must have at least 3 bytes.
|
static int |
decode4BytesBase64(byte[] inputBuffer,
byte[] outputBuffer,
int outputOffset)
Decode the 4 input bytes of the inputBuffer, into the outputBuffer that must have at least 3 bytes remaining.
|
static int |
decode4BytesBase64(byte[] inputBuffer,
int inputOffset,
byte[] outputBuffer,
int outputOffset)
Decode 4 input bytes of the inputBuffer, into the outputBuffer that must have at least 3 bytes remaining.
|
static int |
decode4BytesBase64(ByteBuffer inputBuffer,
byte[] outputBuffer,
int outputOffset)
Decode the 4 input bytes of the inputBuffer, into the outputBuffer that must have at least 3 bytes remaining.
|
static int |
decode4BytesBase64(CharBuffer inputBuffer,
byte[] outputBuffer,
int outputOffset)
Decode the 4 input bytes of the inputBuffer, into the outputBuffer that must have at least 3 bytes remaining.
|
static int |
decodeBase64Char(byte b)
Convert a base 64 character into its integer value.
|
static void |
encode3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
byte[] outputBuffer,
int outputBufferOffset)
Encode the 3 bytes from inputBuffer, into 4 bytes in the outputBuffer.
|
static void |
encode3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
char[] outputBuffer,
int outputBufferOffset)
Encode the 3 bytes from inputBuffer, into 4 bytes in the outputBuffer.
|
static IAsync<IOException> |
encodeAsync(IO.Readable.Buffered io,
ICharacterStream.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
encodeAsync(IO.Readable.Buffered io,
IO.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
encodeAsync(IO.Readable io,
ICharacterStream.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
encodeAsync(IO.Readable io,
IO.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static byte[] |
encodeBase64(byte[] input)
Encode the given bytes into base 64.
|
static byte[] |
encodeBase64(byte[] input,
int offset,
int len)
Encode the given bytes into base 64.
|
static byte |
encodeBase64(int v)
Encode the given integer (from 0 to 63) into its base 64 character.
|
static char[] |
encodeBase64ToChars(byte[] input,
int offset,
int len)
Encode the given bytes into base 64.
|
static void |
encodeUpTo3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
byte[] outputBuffer,
int outputBufferOffset,
int nbInput)
Encode 1 to 3 bytes.
|
static void |
encodeUpTo3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
char[] outputBuffer,
int outputBufferOffset,
int nbInput)
Encode 1 to 3 bytes.
|
public static int decode4BytesBase64(byte[] inputBuffer,
byte[] outputBuffer)
throws IOException
IOExceptionpublic static int decode4BytesBase64(byte[] inputBuffer,
byte[] outputBuffer,
int outputOffset)
throws IOException
IOExceptionpublic static int decode4BytesBase64(byte[] inputBuffer,
int inputOffset,
byte[] outputBuffer,
int outputOffset)
throws IOException
IOExceptionpublic static int decode4BytesBase64(ByteBuffer inputBuffer, byte[] outputBuffer, int outputOffset) throws IOException
IOExceptionpublic static int decode4BytesBase64(CharBuffer inputBuffer, byte[] outputBuffer, int outputOffset) throws IOException
IOExceptionpublic static int decodeBase64Char(byte b)
throws IOException
IOExceptionpublic static byte[] decode(byte[] input)
throws IOException
IOExceptionpublic static byte[] decode(byte[] input,
int offset,
int length)
throws IOException
IOExceptionpublic static byte[] decode(ByteBuffer input) throws IOException
IOExceptionpublic static byte[] decode(CharBuffer input) throws IOException
IOExceptionpublic static byte[] decode(String input) throws IOException
IOExceptionpublic static void encode3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
byte[] outputBuffer,
int outputBufferOffset)
public static void encode3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
char[] outputBuffer,
int outputBufferOffset)
public static void encodeUpTo3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
byte[] outputBuffer,
int outputBufferOffset,
int nbInput)
public static void encodeUpTo3BytesBase64(byte[] inputBuffer,
int inputBufferOffset,
char[] outputBuffer,
int outputBufferOffset,
int nbInput)
public static byte encodeBase64(int v)
throws IOException
IOExceptionpublic static byte[] encodeBase64(byte[] input)
public static byte[] encodeBase64(byte[] input,
int offset,
int len)
public static char[] encodeBase64ToChars(byte[] input,
int offset,
int len)
public static IAsync<IOException> encodeAsync(IO.Readable io, IO.WriterAsync writer)
public static IAsync<IOException> encodeAsync(IO.Readable.Buffered io, IO.WriterAsync writer)
public static IAsync<IOException> encodeAsync(IO.Readable io, ICharacterStream.WriterAsync writer)
public static IAsync<IOException> encodeAsync(IO.Readable.Buffered io, ICharacterStream.WriterAsync writer)
Copyright © 2019. All rights reserved.