public class DefaultEmbeddedStreamTranslator extends Object implements EmbeddedStreamTranslator
Constructor and Description |
---|
DefaultEmbeddedStreamTranslator() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldTranslate(InputStream inputStream,
Metadata metadata)
This should sniff the stream to determine if it needs to be translated.
|
InputStream |
translate(InputStream inputStream,
Metadata metadata)
This will consume the InputStream and return a new stream of translated bytes.
|
public boolean shouldTranslate(InputStream inputStream, Metadata metadata) throws IOException
shouldTranslate
in interface EmbeddedStreamTranslator
inputStream
- metadata
- IOException
public InputStream translate(InputStream inputStream, Metadata metadata) throws IOException
translate
in interface EmbeddedStreamTranslator
inputStream
- metadata
- IOException
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.