类 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 new ByteArrayResource.
    NacosByteArrayResource(byte[] byteArray, String description)
    Create a new ByteArrayResource with a description.
  • 方法概要

    修饰符和类型
    方法
    说明
    This implementation always returns null, assuming that this resource type does not have a filename.
    void
    setFilename(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

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • NacosByteArrayResource

      public NacosByteArrayResource(byte[] byteArray)
      Create a new ByteArrayResource.
      参数:
      byteArray - the byte array to wrap
    • NacosByteArrayResource

      public NacosByteArrayResource(byte[] byteArray, String description)
      Create a new ByteArrayResource with a description.
      参数:
      byteArray - the byte array to wrap
      description - where the byte array comes from
  • 方法详细资料

    • setFilename

      public void setFilename(String filename)
    • getFilename

      public String getFilename()
      This implementation always returns null, assuming that this resource type does not have a filename.
      指定者:
      getFilename 在接口中 org.springframework.core.io.Resource
      覆盖:
      getFilename 在类中 org.springframework.core.io.AbstractResource