Very fast Base64 encoder guaranteed to work in all >= Java 7 JDK and Android environments. @since 0.10.0
| 24 | * @since 0.10.0 |
| 25 | */ |
| 26 | class Base64Encoder extends Base64Support implements Encoder<byte[], String> { |
| 27 | |
| 28 | Base64Encoder() { |
| 29 | this(Base64.DEFAULT); |
| 30 | } |
| 31 | |
| 32 | Base64Encoder(Base64 base64) { |
| 33 | super(base64); |
| 34 | } |
| 35 | |
| 36 | @Override |
| 37 | public String encode(byte[] bytes) throws EncodingException { |
| 38 | Assert.notNull(bytes, "byte array argument cannot be null"); |
| 39 | return this.base64.encodeToString(bytes, false); |
| 40 | } |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…