KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > localstore > ILocalStoreConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.localstore;
12
13 public interface ILocalStoreConstants {
14
15     /** Common constants for History Store classes. */
16     public final static int SIZE_LASTMODIFIED = 8;
17     public static final int SIZE_COUNTER = 1;
18     public static final int SIZE_KEY_SUFFIX = SIZE_LASTMODIFIED + SIZE_COUNTER;
19
20     /** constants for safe chunky streams */
21
22     // 40b18b8123bc00141a2596e7a393be1e
23
public static final byte[] BEGIN_CHUNK = {64, -79, -117, -127, 35, -68, 0, 20, 26, 37, -106, -25, -93, -109, -66, 30};
24
25     // c058fbf323bc00141a51f38c7bbb77c6
26
public static final byte[] END_CHUNK = {-64, 88, -5, -13, 35, -68, 0, 20, 26, 81, -13, -116, 123, -69, 119, -58};
27
28     /** chunk delimiter size */
29     // BEGIN_CHUNK and END_CHUNK must have the same length
30
public static final int CHUNK_DELIMITER_SIZE = BEGIN_CHUNK.length;
31 }
32
Popular Tags