
com.github.gkutiel.flip.web.res.Bin Maven / Gradle / Ivy
package com.github.gkutiel.flip.web.res;
import com.github.gkutiel.flip.Response;
public class Bin implements Response {
@Override
public byte[] getBytes(final Object obj, final String... args) {
if (!(obj instanceof byte[])) throw new IllegalArgumentException("only byte[] can be returned");
return (byte[]) obj;
}
@Override
public String getMimeType(final String mime) {
return mime;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy