ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/compress/CompressNo.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/compress/CompressNo.java
Status
scanned
Type
file
Name
CompressNo.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1004 (1004 bytes)
MD5
7bd3229c38c506856bbe5722eb304a4f
SHA1
38212b05231bba2e53ad078010048515e74249c0
SHA256
f77b2085783dcce205b9235e11f97590da3fd5c1ab833e5dd2db2ccfb98f5a06
SHA512

      
    
SHA1_git
86a19fde31664c92b1854458651fcb3792ca3023
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
CompressNo.java | 1004 bytes |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.compress; /** * This class implements a data compression algorithm that does in fact not * compress. This is useful if the data can not be compressed because it is * encrypted, already compressed, or random. */ public class CompressNo implements Compressor { @Override public int getAlgorithm() { return Compressor.NO; } @Override public void setOptions(String options) { // nothing to do } @Override public int compress(byte[] in, int inPos, int inLen, byte[] out, int outPos) { System.arraycopy(in, inPos, out, outPos, inLen); return outPos + inLen; } @Override public void expand(byte[] in, int inPos, int inLen, byte[] out, int outPos, int outLen) { System.arraycopy(in, inPos, out, outPos, outLen); } }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
7.26
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220