Class BlobStoreTextFile
- java.lang.Object
-
- com.github.tomakehurst.wiremock.common.BinaryFile
-
- com.github.tomakehurst.wiremock.common.TextFile
-
- com.github.tomakehurst.wiremock.store.files.BlobStoreTextFile
-
- All Implemented Interfaces:
InputStreamSource
public class BlobStoreTextFile extends TextFile
-
-
Constructor Summary
Constructors Constructor Description BlobStoreTextFile(BlobStore blobStore, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPath()java.io.InputStreamgetStream()java.lang.Stringname()byte[]readContents()java.lang.StringreadContentsAsString()java.lang.StringtoString()-
Methods inherited from class com.github.tomakehurst.wiremock.common.BinaryFile
getUri
-
-
-
-
Constructor Detail
-
BlobStoreTextFile
public BlobStoreTextFile(BlobStore blobStore, java.lang.String path)
-
-
Method Detail
-
readContents
public byte[] readContents()
- Overrides:
readContentsin classBinaryFile
-
name
public java.lang.String name()
- Overrides:
namein classBinaryFile
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBinaryFile
-
getStream
public java.io.InputStream getStream()
- Specified by:
getStreamin interfaceInputStreamSource- Overrides:
getStreamin classBinaryFile
-
readContentsAsString
public java.lang.String readContentsAsString()
- Overrides:
readContentsAsStringin classTextFile
-
-