gnu.gcj.runtime

Class PersistentByteMap


public class PersistentByteMap
extends Object

Nested Class Summary

static class
PersistentByteMap.AccessMode
static class
PersistentByteMap.MapEntry

Field Summary

static int
ENTRIES
static int
KEYS
static int
VALUES

Constructor Summary

PersistentByteMap(File f, PersistentByteMap.AccessMode mode)
PersistentByteMap(String filename, PersistentByteMap.AccessMode mode)

Method Summary

int
capacity()
void
close()
static PersistentByteMap
emptyPersistentByteMap(File name, int capacity, int strtabSize)
Set<E>
entrySet()
void
force()
byte[]
get(byte[] digest)
File
getFile()
Iterator<E>
iterator(int type)
void
put(byte[] digest, byte[] value)
void
putAll(PersistentByteMap t)
int
size()
int
stringTableSize()

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

ENTRIES

public static final int ENTRIES
Field Value:
2

KEYS

public static final int KEYS
Field Value:
0

VALUES

public static final int VALUES
Field Value:
1

Constructor Details

PersistentByteMap

public PersistentByteMap(File f,
                         PersistentByteMap.AccessMode mode)
            throws IOException

PersistentByteMap

public PersistentByteMap(String filename,
                         PersistentByteMap.AccessMode mode)
            throws IOException

Method Details

capacity

public int capacity()

close

public void close()
            throws IOException

emptyPersistentByteMap

public static PersistentByteMap emptyPersistentByteMap(File name,
                                                       int capacity,
                                                       int strtabSize)
            throws IOException

entrySet

public Set<E> entrySet()

force

public void force()

get

public byte[] get(byte[] digest)

getFile

public File getFile()

iterator

public Iterator<E> iterator(int type)

put

public void put(byte[] digest,
                byte[] value)
            throws IllegalAccessException

putAll

public void putAll(PersistentByteMap t)
            throws IllegalAccessException

size

public int size()

stringTableSize

public int stringTableSize()

Copyright (C) 2004, 2005 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.