EMMA Coverage Report (generated Sun Mar 01 22:06:14 CET 2015)
[all classes][org.h2.compress]

COVERAGE SUMMARY FOR SOURCE FILE [CompressNo.java]

nameclass, %method, %block, %line, %
CompressNo.java100% (1/1)100% (5/5)100% (23/23)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CompressNo100% (1/1)100% (5/5)100% (23/23)100% (7/7)
CompressNo (): void 100% (1/1)100% (3/3)100% (1/1)
compress (byte [], int, byte [], int): int 100% (1/1)100% (10/10)100% (2/2)
expand (byte [], int, int, byte [], int, int): void 100% (1/1)100% (7/7)100% (2/2)
getAlgorithm (): int 100% (1/1)100% (2/2)100% (1/1)
setOptions (String): void 100% (1/1)100% (1/1)100% (1/1)

1/*
2 * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
3 * and the EPL 1.0 (http://h2database.com/html/license.html).
4 * Initial Developer: H2 Group
5 */
6package org.h2.compress;
7 
8/**
9 * This class implements a data compression algorithm that does in fact not
10 * compress. This is useful if the data can not be compressed because it is
11 * encrypted, already compressed, or random.
12 */
13public class CompressNo implements Compressor {
14 
15    @Override
16    public int getAlgorithm() {
17        return Compressor.NO;
18    }
19 
20    @Override
21    public void setOptions(String options) {
22        // nothing to do
23    }
24 
25    @Override
26    public int compress(byte[] in, int inLen, byte[] out, int outPos) {
27        System.arraycopy(in, 0, out, outPos, inLen);
28        return outPos + inLen;
29    }
30 
31    @Override
32    public void expand(byte[] in, int inPos, int inLen, byte[] out, int outPos,
33            int outLen) {
34        System.arraycopy(in, inPos, out, outPos, outLen);
35    }
36 
37}

[all classes][org.h2.compress]
EMMA 2.0.5312 (C) Vladimir Roubtsov