public class ZidFile extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the ZID file.
|
static ZidFile |
getInstance()
Get the an instance of ZIDFile.
|
ZidRecord |
getRecord(byte[] zid)
Get a ZID record from the active ZID file.
|
byte[] |
getZid()
Get the ZID associated with this ZID file.
|
boolean |
isOpen()
Check if ZIDFile has an active (open) file.
|
int |
open(String name)
Open the named ZID file and return a ZID file class.
|
int |
saveRecord(ZidRecord zidRecord)
Save a ZID record into the active ZID file.
|
public static ZidFile getInstance()
public int open(String name)
name - The name of the ZID file to open or createpublic boolean isOpen()
public void close()
public ZidRecord getRecord(byte[] zid)
zid - contains the identifier data. The method
returns the record.public int saveRecord(ZidRecord zidRecord)
zidRecord - The ZID record to save.public byte[] getZid()
Copyright © 2020. All rights reserved.