Return type | Name and parameters |
---|---|
void
|
eachByte(Closure closure)
Traverse through each byte of this Byte array. |
Writable
|
encodeBase64()
Produce a Writable object which writes the Base64 encoding of the byte array. |
Writable
|
encodeBase64(boolean chunked)
Produce a Writable object which writes the Base64 encoding of the byte array. |
Writable
|
encodeBase64Url()
Produce a Writable object which writes the Base64 URL and Filename Safe encoding of the byte array. |
Writable
|
encodeBase64Url(boolean pad)
Produce a Writable object which writes the Base64 URL and Filename Safe encoding of the byte array. |
Writable
|
encodeHex()
Produces a Writable that writes the hex encoding of the Byte[]. |
abs
, and
, asBoolean
, asType
, bitwiseNegate
, compareTo
, compareTo
, div
, div
, downto
, intdiv
, intdiv
, isCase
, leftShift
, minus
, minus
, mod
, multiply
, multiply
, next
, or
, plus
, plus
, plus
, power
, previous
, rightShift
, rightShiftUnsigned
, step
, times
, toBigDecimal
, toBigInteger
, toDouble
, toFloat
, toInteger
, toLong
, unaryMinus
, unaryPlus
, upto
, xor
addShutdownHook
, any
, any
, asBoolean
, asType
, average
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, stream
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
Traverse through each byte of this Byte array. Alias for each.
closure
- a closureProduce a Writable object which writes the Base64 encoding of the byte array.
Calling toString() on the result returns the encoding as a String. For more
information on Base64 encoding and chunking see RFC 4648
.
Produce a Writable object which writes the Base64 encoding of the byte array.
Calling toString() on the result returns the encoding as a String. For more
information on Base64 encoding and chunking see RFC 4648
.
chunked
- whether or not the Base64 encoded data should be MIME chunkedProduce a Writable object which writes the Base64 URL and Filename Safe encoding of the byte array.
Calling toString() on the result returns the encoding as a String. For more
information on Base64 URL and Filename Safe encoding see RFC 4648 - Section 5
Base 64 Encoding with URL and Filename Safe Alphabet
.
The method omits padding and is equivalent to calling
EncodingGroovyMethods#encodeBase64Url(Byte[], boolean) with a
value of false
.
Produce a Writable object which writes the Base64 URL and Filename Safe encoding of the byte array.
Calling toString() on the result returns the encoding as a String. For more
information on Base64 URL and Filename Safe encoding see RFC 4648 - Section 5
Base 64 Encoding with URL and Filename Safe Alphabet
.
pad
- whether or not the encoded data should be paddedProduces a Writable that writes the hex encoding of the Byte[]. Calling toString() on this Writable returns the hex encoding as a String. The hex encoding includes two characters for each byte and all letters are lower case.