public class KdbSerializer extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkSignature(DataInput dataInput)
Check the signature of a data source
|
static KdbDatabase |
createKdbDatabase(Credentials credentials,
KdbHeader kdbHeader,
InputStream inputStream)
Construct a KDB database from the supplied inputstream.
|
static Date |
unpackDate(byte[] buffer)
Stucture is in this format: 00YYYYYY YYYYYYMM MMDDDDDH HHHHMMMM MMSSSSSS
|
public static KdbDatabase createKdbDatabase(Credentials credentials, KdbHeader kdbHeader, InputStream inputStream) throws IOException
credentials - the credentialskdbHeader - a header to be populated with values read from the streaminputStream - an inputStream to read fromIOException - if reading of the inputStream failsIllegalStateException - if decoding of KDB format failspublic static void checkSignature(DataInput dataInput) throws IOException
dataInput - the source to checkIOExceptionIllegalStateException - if the signature does not matchpublic static Date unpackDate(byte[] buffer)
buffer - 5 bytes containing a packed dateCopyright © 2016. All rights reserved.