接口的使用
cn.taketoday.core.io.InputStreamSource
使用InputStreamSource的程序包
程序包
说明
Support classes for components that contribute generated code equivalent to a
runtime behavior.
-
cn.taketoday.aot.generate中InputStreamSource的使用
修饰符和类型类说明(专用程序包) class类型参数类型为InputStreamSource的cn.taketoday.aot.generate中的字段修饰符和类型字段说明private final Map<GeneratedFiles.Kind,Map<String, InputStreamSource>> InMemoryGeneratedFiles.files修饰符和类型方法说明InMemoryGeneratedFiles.getGeneratedFile(GeneratedFiles.Kind kind, String path) Return theInputStreamSourceof specified file.返回变量类型为InputStreamSource的类型的cn.taketoday.aot.generate中的方法修饰符和类型方法说明InMemoryGeneratedFiles.getGeneratedFiles(GeneratedFiles.Kind kind) Return aMapof the generated files of a specificGeneratedFiles.Kind.修饰符和类型方法说明default voidGeneratedFiles.addClassFile(String path, InputStreamSource content) Add a generatedclass filewith content from the givenInputStreamSource.voidFileSystemGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) voidGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) Add a generated file of the specifiedGeneratedFiles.Kindwith content from the givenInputStreamSource.voidInMemoryGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) default voidGeneratedFiles.addResourceFile(String path, InputStreamSource content) Add a generatedresource filewith content from the givenInputStreamSource.default voidGeneratedFiles.addSourceFile(String className, InputStreamSource content) Add a generatedsource filewith content from the givenInputStreamSource. -
cn.taketoday.core.io中InputStreamSource的使用
修饰符和类型接口说明interfaceExtended interface for a resource that is loaded from an enclosing 'context', e.g. from ajakarta.servlet.ServletContextbut also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the localResourceLoader's context).interfaceInterface for a resource descriptor that abstracts from the actual type of underlying resource, such as a file or class path resource.interfaceExtended interface for a resource that supports writing to it.修饰符和类型类说明classAbstract base class for resources which resolve URLs into File references, such asUrlResourceorClassPathResource.classConvenience base class forResourceimplementations, pre-implementing typical behavior.classResourceimplementation for a given byte array.classResourceimplementation for class path resources.private static classClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.protected static classClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.classSimpleResourceimplementation that holds a resource description but does not point to an actually readable resource.classHolder that combines aResourcedescriptor with a specific encoding orCharsetto be used for reading from the resource.classprivate static classFileSystemResource that explicitly expresses a context-relative path through implementing the ContextResource interface.classSubclass ofUrlResourcewhich assumes file resolution, to the degree of implementing theWritableResourceinterface for it.classResourceimplementation for a givenInputStream.classResourceimplementation forModuleresolution, performingModuleResource.getInputStream()access viaModule.getResourceAsStream(java.lang.String).classclassThis class implements the Wrapper or Decorator pattern.classResourceimplementation forjava.net.URLlocators.class