다음을 통해 공유


Base64 Class

Definition

This class consists exclusively of static methods for obtaining encoders and decoders for the Base64 encoding scheme.

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

Remarks

This class consists exclusively of static methods for obtaining encoders and decoders for the Base64 encoding scheme. The implementation of this class supports the following types of Base64 as specified in RFC 4648 and RFC 2045.

<ul> <li>"basic"><b>Basic</b>

Uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for encoding and decoding operation. The encoder does not add any line feed (line separator) character. The decoder rejects data that contains characters outside the base64 alphabet.

</li>

<li>"url"><b>URL and Filename safe</b>

Uses the "URL and Filename safe Base64 Alphabet" as specified in Table 2 of RFC 4648 for encoding and decoding. The encoder does not add any line feed (line separator) character. The decoder rejects data that contains characters outside the base64 alphabet.

</li>

<li>"mime"><b>MIME</b>

Uses "The Base64 Alphabet" as specified in Table 1 of RFC 2045 for encoding and decoding operation. The encoded output must be represented in lines of no more than 76 characters each and uses a carriage return '\r' followed immediately by a linefeed '\n' as the line separator. No line separator is added to the end of the encoded output. All line separators or other characters not found in the base64 alphabet table are ignored in decoding operation.

</li> </ul>

Unless otherwise noted, passing a null argument to a method of this class will cause a java.lang.NullPointerException NullPointerException to be thrown.

Added in 1.8.

Java documentation for java.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)

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
MimeDecoder

Returns a Decoder that decodes using the <a href="#mime">MIME</a> type base64 decoding scheme.

MimeEncoder

Returns a Encoder that encodes using the <a href="#mime">MIME</a> type base64 encoding scheme.

PeerReference (Inherited from Object)
ThresholdClass
ThresholdType
UrlDecoder

Returns a Decoder that decodes using the <a href="#url">URL and Filename safe</a> type base64 encoding scheme.

UrlEncoder

Returns a Encoder that encodes using the <a href="#url">URL and Filename safe</a> type base64 encoding scheme.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

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

(Inherited from Object)
GetDecoder()

Returns a Decoder that decodes using the <a href="#basic">Basic</a> type base64 encoding scheme.

GetEncoder()

Returns a Encoder that encodes using the <a href="#basic">Basic</a> type base64 encoding scheme.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetMimeEncoder(Int32, Byte[])

Returns a Encoder that encodes using the <a href="#mime">MIME</a> type base64 encoding scheme.

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