com.scarabsoft.jrest.converter.ByteArrayConverter Maven / Gradle / Ivy
package com.scarabsoft.jrest.converter;
import com.scarabsoft.jrest.util.IOUtils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
public class ByteArrayConverter implements Converter {
@Override
public byte[] convert(InputStream is) throws IOException {
return IOUtils.convert(is);
}
@Override
public Collection convertCollection(InputStream inputStream, Class extends Collection> collectionClazz) throws IOException {
throw new RuntimeException("not supported yet.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy