接口的使用
cn.taketoday.buildpack.platform.io.Content
使用Content的程序包
程序包
说明
Docker types.
IO classes and utilities.
-
cn.taketoday.buildpack.platform.docker.type中Content的使用
-
cn.taketoday.buildpack.platform.io中Content的使用
修饰符和类型类说明classContentthat is reads and inspects a source of data only once but allows it to be consumed multiple times.修饰符和类型方法说明static ContentContent.of(byte[] bytes) Create a newContentfrom the given input stream.static ContentContent.of(int size, IOSupplier<InputStream> supplier) Create a newContentfrom the given input stream.static ContentCreate a newContentfrom the given file.static ContentCreate a newContentfrom the given UTF-8 string.修饰符和类型方法说明voidWrite a file to the content.default voidWrite a file to the content.voidstatic InspectedContentInspectedContent.of(Content content, InspectedContent.Inspector... inspectors) Factory method to create anInspectedContentinstance from source content.