public class NacosByteArrayResource
extends org.springframework.core.io.ByteArrayResource
| Constructor and Description |
|---|
NacosByteArrayResource(byte[] byteArray)
Create a new
ByteArrayResource. |
NacosByteArrayResource(byte[] byteArray,
String description)
Create a new
ByteArrayResource with a description. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
This implementation always returns
null, assuming that this resource type
does not have a filename. |
void |
setFilename(String filename) |
contentLength, equals, exists, getByteArray, getDescription, getInputStream, hashCodepublic NacosByteArrayResource(byte[] byteArray)
ByteArrayResource.byteArray - the byte array to wrappublic NacosByteArrayResource(byte[] byteArray,
String description)
ByteArrayResource with a description.byteArray - the byte array to wrapdescription - where the byte array comes frompublic void setFilename(String filename)
public String getFilename()
null, assuming that this resource type
does not have a filename.getFilename in interface org.springframework.core.io.ResourcegetFilename in class org.springframework.core.io.AbstractResourceCopyright © 2023 Pivotal Software, Inc.. All rights reserved.