类 TapeArchiveChartWriter
- java.lang.Object
-
- org.microbean.helm.chart.AbstractChartWriter
-
- org.microbean.helm.chart.AbstractArchiveChartWriter
-
- org.microbean.helm.chart.TapeArchiveChartWriter
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class TapeArchiveChartWriter extends AbstractArchiveChartWriter
AnAbstractArchiveChartWriterthat savesChartOuterClass.ChartOrBuilderobjects to a suppliedOutputStreamin TAR format, using aTarOutputStreaminternally.- 作者:
- Laird Nelson
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.microbean.helm.chart.AbstractChartWriter
AbstractChartWriter.Context
-
-
构造器概要
构造器 构造器 说明 TapeArchiveChartWriter(OutputStream outputStream)Creates a newTapeArchiveChartWriter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()Closes thisTapeArchiveChartWriterby closing its underlyingTarOutputStream.protected voidwriteEntry(AbstractChartWriter.Context context, String path, String contents)Creates a newTarHeaderand aTarEntrywrapping it and writes it and the suppliedcontentsto the underlyingTarOutputStream.-
从类继承的方法 org.microbean.helm.chart.AbstractArchiveChartWriter
beginWrite, endWrite, writeConfig, writeFile, writeMetadata, writeTemplate
-
从类继承的方法 org.microbean.helm.chart.AbstractChartWriter
createYaml, toYAML, write, write, writeSubchart
-
-
-
-
构造器详细资料
-
TapeArchiveChartWriter
public TapeArchiveChartWriter(OutputStream outputStream)
Creates a newTapeArchiveChartWriter.- 参数:
outputStream- theOutputStreamto write to; must not benulland should be buffered at some level- 另请参阅:
AbstractArchiveChartWriter(),TarOutputStream(OutputStream)
-
-
方法详细资料
-
writeEntry
protected void writeEntry(AbstractChartWriter.Context context, String path, String contents) throws IOException
Creates a newTarHeaderand aTarEntrywrapping it and writes it and the suppliedcontentsto the underlyingTarOutputStream.- 指定者:
writeEntry在类中AbstractArchiveChartWriter- 参数:
context- theAbstractChartWriter.Contextdescribing the write operation in effect; must not benullpath- the path within a tape archive to write; interpreted as being relative to the current chart path; must not benullor emptycontents- the contents to write; must not benull- 抛出:
IOException- if a write error occursNullPointerException- ifcontext,pathorcontentsisnullIllegalArgumentException- ifpathis empty
-
close
public void close() throws IOExceptionCloses thisTapeArchiveChartWriterby closing its underlyingTarOutputStream. ThisTapeArchiveChartWritercannot be used again.- 抛出:
IOException- if there was a problem closing the underlyingTarOutputStream
-
-