Class SVNBase64
java.lang.Object
org.tmatesoft.svn.core.internal.util.SVNBase64
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
This array is the analogue of base64ToInt, but for the nonstandard variant that avoids the use of uppercase alphabetic characters.private static final byte[]
This array is a lookup table that translates unicode characters drawn from the "SVNBase64 Alphabet" (as specified in Table 1 of RFC 2045) into their 6-bit positive integer equivalents.private static final char[]
private static final char[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
base64ToByteArray
(char[] s, byte[] buffer) private static int
base64ToByteArray
(char[] s, byte[] result, boolean alternate) static int
base64ToByteArray
(StringBuffer s, byte[] buffer) Translates the specified SVNBase64 string (as per Preferences.get(byte[])) into a byte array.private static int
base64ToByteArray
(StringBuffer sb, byte[] result, boolean alternate) static String
byteArrayToAltBase64
(byte[] a) static String
byteArrayToBase64
(byte[] a) private static String
byteArrayToBase64
(byte[] a, boolean alternate) private static char
charAt
(char[] array, int index) static char[]
normalizeBase64
(char[] in) static StringBuffer
-
Field Details
-
intToBase64
private static final char[] intToBase64 -
intToAltBase64
private static final char[] intToAltBase64 -
base64ToInt
private static final byte[] base64ToIntThis array is a lookup table that translates unicode characters drawn from the "SVNBase64 Alphabet" (as specified in Table 1 of RFC 2045) into their 6-bit positive integer equivalents. Characters that are not in the SVNBase64 alphabet but fall within the bounds of the array are translated to -1. -
altBase64ToInt
private static final byte[] altBase64ToIntThis array is the analogue of base64ToInt, but for the nonstandard variant that avoids the use of uppercase alphabetic characters.
-
-
Constructor Details
-
SVNBase64
public SVNBase64()
-
-
Method Details
-
byteArrayToBase64
-
byteArrayToAltBase64
-
byteArrayToBase64
-
base64ToByteArray
Translates the specified SVNBase64 string (as per Preferences.get(byte[])) into a byte array.- Throws:
IllegalArgumentException
- if s is not a valid SVNBase64 string.
-
base64ToByteArray
public static int base64ToByteArray(char[] s, byte[] buffer) -
normalizeBase64
-
normalizeBase64
public static char[] normalizeBase64(char[] in) -
base64ToByteArray
-
base64ToByteArray
private static int base64ToByteArray(char[] s, byte[] result, boolean alternate) -
charAt
private static char charAt(char[] array, int index)
-