net.sf.mmm.util.io.impl.DetectorStreamProviderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-util-io Show documentation
Show all versions of mmm-util-io Show documentation
Utilities for input/output and streaming.
The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.io.impl;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import net.sf.mmm.util.io.api.DetectorInputStream;
import net.sf.mmm.util.io.api.DetectorOutputStream;
import net.sf.mmm.util.io.base.AbstractDetectorStreamProvider;
/**
* This is the implementation of the {@link net.sf.mmm.util.io.api.DetectorStreamProvider} interface.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.1.0
*/
public class DetectorStreamProviderImpl extends AbstractDetectorStreamProvider {
/**
* The constructor.
*/
public DetectorStreamProviderImpl() {
super();
}
@Override
public DetectorInputStream wrapInputStream(InputStream stream, Map metadata) {
return new ProcessableDetectorInputStream(stream, metadata, this);
}
@Override
public DetectorOutputStream wrapOutputStream(OutputStream stream, Map metadata) {
return new ProcessableDetectorOutputStream(stream, metadata, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy