2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1999 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A// Author: James Kempf 2N/A// Created On: Tue Apr 7 15:21:58 1998 2N/A// Last Modified By: James Kempf 2N/A// Last Modified On: Fri Jun 5 15:26:59 1998 2N/A * The Opaque class wraps Java byte arrays so we can do object-like 2N/A * things, such as deep equality comparison and printing. 2N/A * @author James Kempf 2N/A // Character to use for fill. 2N/A private static final char ZERO =
'0';
2N/A // For identifying opaques. 2N/A // Construct a Opaque. 2N/A // Construct a byte array from an escaped string. 2N/A // Check for opaque header. 2N/A // Process escapes to remove slash. 2N/A for (i =
0; i < n; i++) {
2N/A // Get the next two characters. 2N/A "nonterminating_escape",
2N/A // Overrides Object.equals(). 2N/A // Not equal if lengths aren't. 2N/A for (i =
0; i < n; i++) {
2N/A // Convert each byte into a string, then escape. We use 2N/A // an 8-bit encoding, LATIN1, since escapes are two