com.liferay.document.library.internal.security.io.InputStreamSanitizerImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.document.library.service
Show all versions of com.liferay.document.library.service
Liferay Document Library Service
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.document.library.internal.security.io;
import com.liferay.document.library.internal.util.InputStreamUtil;
import com.liferay.document.library.security.io.InputStreamSanitizer;
import java.io.InputStream;
import org.osgi.service.component.annotations.Component;
/**
* @author Adolfo Pérez
*/
@Component(service = InputStreamSanitizer.class)
public class InputStreamSanitizerImpl implements InputStreamSanitizer {
@Override
public InputStream sanitize(InputStream inputStream) {
return new SafePNGInputStream(
InputStreamUtil.toBufferedInputStream(inputStream));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy