| Modifier and Type | Field and Description |
|---|---|
static Magic |
Magic.BOM_UTF_16_BE |
static Magic |
Magic.BOM_UTF_16_LE |
static Magic |
Magic.BOM_UTF_32_BE
A couple of BOM magics
|
static Magic |
Magic.BOM_UTF_32_LE |
static Magic |
Magic.BOM_UTF_8 |
static Magic |
Magic.GZIP
First 2 bytes of a GZIP file have this signature.
|
static Magic |
Magic.NONE |
static Magic |
Magic.ZIP
First 4 bytes of a ZIP file have this signature.
|
| Modifier and Type | Method and Description |
|---|---|
static Magic |
Magic.define(String description,
Charset impliesEncoding,
int... bytesAsIntsForConvenience)
Defines a magic signature which can later be detected in
of(File) and of(byte[]). |
static Magic |
Magic.of(byte[] bytes)
Matches the magic bytes with all defined and returns a match or
NONE. |
static Magic |
Magic.of(File file)
Extracts and matches the magic of the header in the given
file. |
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.