public class ChmAssert
extends java.lang.Object
| Constructor and Description |
|---|
ChmAssert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertByteArrayNotNull(byte[] data)
Checks if byte[] is not null
|
static void |
assertChmAccessorNotNull(ChmAccessor<?> chmAccessor)
Checks if ChmAccessor is not null In case of null throws exception
|
static void |
assertChmAccessorParameters(byte[] data,
ChmAccessor<?> chmAccessor,
int count)
Checks validity of ChmAccessor parameters
|
static void |
assertChmBlockSegment(byte[] data,
ChmLzxcResetTable resetTable,
int blockNumber,
int lzxcBlockOffset,
int lzxcBlockLength)
Checks a validity of the chmBlockSegment parameters
|
static void |
assertCopyingDataIndex(int index,
int dataLength) |
static void |
assertDirectoryListingEntry(int name_length,
java.lang.String name,
ChmCommons.EntryType entryType,
int offset,
int length)
Checks validity of the DirectoryListingEntry's parameters In case of
invalid parameter(s) throws an exception
|
static void |
assertInputStreamNotNull(java.io.InputStream is)
Checks if InputStream is not null
|
static void |
assertPositiveInt(int param)
Checks if int param is greater than zero In case param <= 0 throws an
exception
|
public static final void assertChmBlockSegment(byte[] data,
ChmLzxcResetTable resetTable,
int blockNumber,
int lzxcBlockOffset,
int lzxcBlockLength)
throws TikaException
data - byte[]resetTable - ChmLzxcResetTableblockNumber - intlzxcBlockOffset - intlzxcBlockLength - intTikaExceptionpublic static final void assertInputStreamNotNull(java.io.InputStream is)
throws java.io.IOException
is - InputStreamChmParsingExceptionjava.io.IOExceptionpublic static final void assertChmAccessorParameters(byte[] data,
ChmAccessor<?> chmAccessor,
int count)
throws ChmParsingException
data - chmAccessor - count - ChmParsingExceptionpublic static final void assertByteArrayNotNull(byte[] data)
throws ChmParsingException
data - ChmParsingExceptionpublic static final void assertChmAccessorNotNull(ChmAccessor<?> chmAccessor) throws ChmParsingException
chmAccessor - ChmParsingExceptionpublic static final void assertDirectoryListingEntry(int name_length,
java.lang.String name,
ChmCommons.EntryType entryType,
int offset,
int length)
throws ChmParsingException
name_length - length of the chm entry namename - chm entry nameentryType - EntryTypeoffset - length - ChmParsingExceptionpublic static void assertCopyingDataIndex(int index,
int dataLength)
throws ChmParsingException
ChmParsingExceptionpublic static void assertPositiveInt(int param)
throws ChmParsingException
param - ChmParsingExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved