| 1 | // SPDX-License-Identifier: 0BSD |
| 2 | // SPDX-FileCopyrightText: The XZ for Java authors and contributors |
| 3 | // SPDX-FileContributor: Lasse Collin <[email protected]> |
| 4 | |
| 5 | package org.tukaani.xz.check; |
| 6 | |
| 7 | public class None extends Check { |
| 8 | public None() { |
| 9 | size = 0; |
| 10 | name = "None"; |
| 11 | } |
| 12 | |
| 13 | @Override |
| 14 | public void update(byte[] buf, int off, int len) {} |
| 15 | |
| 16 | @Override |
| 17 | public byte[] finish() { |
| 18 | byte[] empty = new byte[0]; |
| 19 | return empty; |
| 20 | } |
| 21 | } |