Class DynamicFile
java.lang.Object
org.springframework.core.test.tools.DynamicFile
- Direct Known Subclasses:
ResourceFile
,SourceFile
Abstract base class for dynamically generated files.
- Since:
- 6.0
- Author:
- Phillip Webb
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DynamicFile
-
-
Method Details
-
toString
-
getBytes
public byte[] getBytes()Return the contents of the file as a byte array.- Returns:
- the file contents as a byte array
-
getContent
Return the contents of the file.- Returns:
- the file contents
-
getPath
Return the relative path of the file.- Returns:
- the file path
-
equals
-
hashCode
public int hashCode() -
toString
-