public abstract class FileWrapper
extends java.lang.Object
| Constructor and Description |
|---|
FileWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static FileWrapper |
create(java.lang.String filename,
com.google.protobuf.ByteString fileContents) |
static FileWrapper |
from(java.lang.String fileName)
Creates a new
FileWrapper from a given filename, either absolute or relative. |
abstract com.google.protobuf.ByteString |
getFileContents() |
abstract java.lang.String |
getFilename() |
public static FileWrapper from(java.lang.String fileName) throws java.io.IOException
FileWrapper from a given filename, either absolute or relative.java.io.IOException - if the file does not exist or cannot be read.public static FileWrapper create(java.lang.String filename, com.google.protobuf.ByteString fileContents)
public abstract java.lang.String getFilename()
public abstract com.google.protobuf.ByteString getFileContents()