aQute.lib.json.ByteArrayHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aQute.libg Show documentation
Show all versions of aQute.libg Show documentation
A library to be statically linked. Contains many small utilities. This bundle should not be installed in a framework, it is compile only.
package aQute.lib.json;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Map;
import java.util.regex.Pattern;
import aQute.lib.base64.Base64;
import aQute.lib.hex.Hex;
/**
* Will now use hex for encoding byte arrays
*/
public class ByteArrayHandler extends Handler {
Pattern ENCODING = Pattern.compile(
"((:?[\\dA-Za-z][\\dA-Za-z])*)|((:?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/)+={1,3})");
@Override
public void encode(Encoder app, Object object, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy