다음을 통해 공유


Base64 Class

Definition

Utilities for encoding and decoding the Base64 representation of binary data.

[Android.Runtime.Register("android/util/Base64", DoNotGenerateAcw=true)]
public class Base64 : Java.Lang.Object
[<Android.Runtime.Register("android/util/Base64", DoNotGenerateAcw=true)>]
type Base64 = class
    inherit Object
Inheritance
Base64
Attributes

Remarks

Utilities for encoding and decoding the Base64 representation of binary data. See RFCs 2045 and 3548.

Java documentation for android.util.Base64.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Base64(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

Crlf
Obsolete.

Encoder flag bit to indicate lines should be terminated with a CRLF pair instead of just an LF.

Default
Obsolete.

Default values for encoder/decoder flags.

NoClose
Obsolete.

Flag to pass to Base64OutputStream to indicate that it should not close the output stream it is wrapping when it itself is closed.

NoPadding
Obsolete.

Encoder flag bit to omit the padding '=' characters at the end of the output (if any).

NoWrap
Obsolete.

Encoder flag bit to omit all line terminators (i.

UrlSafe
Obsolete.

Encoder/decoder flag bit to indicate using the "URL and filename safe" variant of Base64 (see RFC 3548 section 4) where - and _ are used in place of + and /.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Decode(Byte[], Base64Flags)

Decode the Base64-encoded data in input and return the data in a new byte array.

Decode(Byte[], Int32, Int32, Base64Flags)

Decode the Base64-encoded data in input and return the data in a new byte array.

Decode(String, Base64Flags)

Decode the Base64-encoded data in input and return the data in a new byte array.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Encode(Byte[], Base64Flags)

Base64-encode the given data and return a newly allocated byte[] with the result.

Encode(Byte[], Int32, Int32, Base64Flags)

Base64-encode the given data and return a newly allocated byte[] with the result.

EncodeToString(Byte[], Base64Flags)

Base64-encode the given data and return a newly allocated String with the result.

EncodeToString(Byte[], Int32, Int32, Base64Flags)

Base64-encode the given data and return a newly allocated String with the result.

Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to