public class InMemoryMojoReaderBackend extends java.lang.Object implements MojoReaderBackend, java.io.Closeable
Constructor and Description |
---|
InMemoryMojoReaderBackend(java.util.Map<java.lang.String,byte[]> mojoContent) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
exists(java.lang.String filename) |
byte[] |
getBinaryFile(java.lang.String filename) |
java.io.BufferedReader |
getTextFile(java.lang.String filename) |
public InMemoryMojoReaderBackend(java.util.Map<java.lang.String,byte[]> mojoContent)
public java.io.BufferedReader getTextFile(java.lang.String filename) throws java.io.IOException
getTextFile
in interface MojoReaderBackend
java.io.IOException
public byte[] getBinaryFile(java.lang.String filename) throws java.io.IOException
getBinaryFile
in interface MojoReaderBackend
java.io.IOException
public boolean exists(java.lang.String filename)
exists
in interface MojoReaderBackend
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException