类 NacosByteArrayResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.ByteArrayResource
com.alibaba.cloud.nacos.parser.NacosByteArrayResource
- 所有已实现的接口:
org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource
public class NacosByteArrayResource
extends org.springframework.core.io.ByteArrayResource
Nacos-specific resource.
- 作者:
- zkz
-
构造器概要
构造器构造器说明NacosByteArrayResource(byte[] byteArray) Create a newByteArrayResource.NacosByteArrayResource(byte[] byteArray, String description) Create a newByteArrayResourcewith a description. -
方法概要
修饰符和类型方法说明This implementation always returnsnull, assuming that this resource type does not have a filename.voidsetFilename(String filename) 从类继承的方法 org.springframework.core.io.ByteArrayResource
contentLength, equals, exists, getByteArray, getContentAsByteArray, getContentAsString, getDescription, getInputStream, hashCode从类继承的方法 org.springframework.core.io.AbstractResource
createRelative, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel, toString
-
构造器详细资料
-
NacosByteArrayResource
public NacosByteArrayResource(byte[] byteArray) Create a newByteArrayResource.- 参数:
byteArray- the byte array to wrap
-
NacosByteArrayResource
Create a newByteArrayResourcewith a description.- 参数:
byteArray- the byte array to wrapdescription- where the byte array comes from
-
-
方法详细资料
-
setFilename
-
getFilename
This implementation always returnsnull, assuming that this resource type does not have a filename.- 指定者:
getFilename在接口中org.springframework.core.io.Resource- 覆盖:
getFilename在类中org.springframework.core.io.AbstractResource
-