Class FromFileProperty
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.FromFileProperty
-
- All Implemented Interfaces:
Serializable
public class FromFileProperty extends Object implements Serializable
Represents a property that will become a File content.- Since:
- 2.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FromFileProperty(File file, Class type)FromFileProperty(File file, Class type, Charset charset)
-
-
-
Method Detail
-
isString
public boolean isString()
-
isByte
public boolean isByte()
-
isJson
public boolean isJson()
-
isXml
public boolean isXml()
-
asString
public String asString()
-
fileName
public String fileName()
-
asBytes
public byte[] asBytes()
-
getFile
public final File getFile()
-
getCharset
public final String getCharset()
-
getType
public final Class getType()
-
-