Home
last modified time | relevance | path

Searched refs:Base64Variants (Results 1 – 21 of 21) sorted by relevance

/external/jackson-core/src/test/java/com/fasterxml/jackson/core/base64/
DBase64CodecTest.java15 Base64Variants.MIME, in testVariantAccess()
16 Base64Variants.MIME_NO_LINEFEEDS, in testVariantAccess()
17 Base64Variants.MODIFIED_FOR_URL, in testVariantAccess()
18 Base64Variants.PEM in testVariantAccess()
20 assertSame(var, Base64Variants.valueOf(var.getName())); in testVariantAccess()
24 Base64Variants.valueOf("foobar"); in testVariantAccess()
33 Base64Variant std = Base64Variants.MIME; in testProps()
47 Base64Variant std = Base64Variants.MIME; in testCharEncoding()
81 final Base64Variant std = Base64Variants.MIME; in testConvenienceMethods()
103 final Base64Variant std = Base64Variants.MIME; in testConvenienceMethodWithLFs()
[all …]
DBase64BinaryParsingTest.java90 p.getBinaryValue(Base64Variants.MIME); in testInvalidChar()
101 p.getBinaryValue(Base64Variants.MIME); in testInvalidChar()
112 p.getBinaryValue(Base64Variants.MIME); in testInvalidChar()
137 final Base64Variant b64 = Base64Variants.MODIFIED_FOR_URL; in _testOkMissingPadding()
169 /*byte[] b =*/ p.getBinaryValue(Base64Variants.MIME); in _testFailDueToMissingPadding()
181 /*byte[] b =*/ p.getBinaryValue(Base64Variants.MIME); in _testFailDueToMissingPadding()
202 Base64Variants.MIME, in _testBase64Text()
203 Base64Variants.MIME_NO_LINEFEEDS, in _testBase64Text()
204 Base64Variants.MODIFIED_FOR_URL, in _testBase64Text()
205 Base64Variants.PEM in _testBase64Text()
DBase64GenerationTest.java34 Base64Variants.MIME,
35 Base64Variants.MIME_NO_LINEFEEDS,
36 Base64Variants.MODIFIED_FOR_URL,
37 Base64Variants.PEM
122 Base64Variant b64v = Base64Variants.getDefaultVariant(); in _testSimpleBinaryWrite()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestSimpleTypes.java3 import com.fasterxml.jackson.core.Base64Variants;
52 MAPPER.writer(Base64Variants.MIME_NO_LINEFEEDS).writeValueAsString(INPUT)); in testBase64Variants()
56 MAPPER.writer(Base64Variants.MIME).writeValueAsString(INPUT)); in testBase64Variants()
58 MAPPER.writer(Base64Variants.MODIFIED_FOR_URL).writeValueAsString(INPUT)); in testBase64Variants()
61 MAPPER.writer(Base64Variants.PEM).writeValueAsString(INPUT)); in testBase64Variants()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DTestStringConversions.java7 import com.fasterxml.jackson.core.Base64Variants;
66 assertEquals(Base64Variants.MIME.encode(input), encoded); in testBytesToBase64AndBack()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DTestConversions.java187 Base64Variants.MIME, in testBase64Text()
188 Base64Variants.MIME_NO_LINEFEEDS, in testBase64Text()
189 Base64Variants.MODIFIED_FOR_URL, in testBase64Text()
190 Base64Variants.PEM in testBase64Text()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/
DTestJDKSerializability.java6 import com.fasterxml.jackson.core.Base64Variants;
36 Base64Variant orig = Base64Variants.PEM; in testBase64Variant()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DUUIDDeserializer.java7 import com.fasterxml.jackson.core.Base64Variants;
44 byte[] stuff = Base64Variants.getDefaultVariant().decode(id); in _deserialize()
DPrimitiveArrayDeserializers.java316 … return Base64Variants.getDefaultVariant().encode((byte[]) ob, false).toCharArray(); in deserialize()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DBase64Variants.java18 public final class Base64Variants class
DJsonParser.java1566 return getBinaryValue(Base64Variants.getDefaultVariant()); in getBinaryValue()
1584 return readBinaryValue(Base64Variants.getDefaultVariant(), out); in readBinaryValue()
DJsonGenerator.java1264 writeBinary(Base64Variants.getDefaultVariant(), data, offset, len); in writeBinary()
1274 writeBinary(Base64Variants.getDefaultVariant(), data, 0, data.length); in writeBinary()
1292 return writeBinary(Base64Variants.getDefaultVariant(), data, dataLength); in writeBinary()
DBase64Variant.java182 return Base64Variants.valueOf(_name); in readResolve()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DMapKeyDeserializationTest.java9 import com.fasterxml.jackson.core.Base64Variants;
158 String encoded = Base64Variants.MIME.encode(binary); in testByteArrayMapKeyDeserialization()
DJDKScalarsTest.java453 … Assert.assertArrayEquals(INPUT, (byte[]) reader.with(Base64Variants.MIME_NO_LINEFEEDS).readValue( in testBase64Variants()
458 Assert.assertArrayEquals(INPUT, (byte[]) reader.with(Base64Variants.MIME).readValue( in testBase64Variants()
461 … Assert.assertArrayEquals(INPUT, (byte[]) reader.with(Base64Variants.MODIFIED_FOR_URL).readValue( in testBase64Variants()
465 Assert.assertArrayEquals(INPUT, (byte[]) reader.with(Base64Variants.PEM).readValue( in testBase64Variants()
DJDKStringLikeTypesTest.java14 import com.fasterxml.jackson.core.Base64Variants;
326 String base64 = Base64Variants.getDefaultVariant().encode(new byte[16]); in testUUID()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/
DBinaryNode.java89 return Base64Variants.getDefaultVariant().encode(_data, false); in asText()
DTextNode.java83 return getBinaryValue(Base64Variants.getDefaultVariant()); in binaryValue()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/
DMapKeySerializationTest.java14 import com.fasterxml.jackson.core.Base64Variants;
331 String expBase64 = Base64Variants.MIME.encode(binary); in testMapsWithBinaryKeys()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectWriterTest.java183 ObjectWriter newW = w.with(Base64Variants.MODIFIED_FOR_URL); in testMiscSettings()
185 assertSame(newW, newW.with(Base64Variants.MODIFIED_FOR_URL)); in testMiscSettings()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectMapper.java367 Base64Variants.getDefaultVariant(),