public class Layer extends java.lang.Object implements Content
ImageArchive.| Modifier and Type | Method and Description |
|---|---|
static Layer |
fromTarArchive(TarArchive tarArchive)
Factory method to create a new
Layer from a TarArchive. |
LayerId |
getId()
Return the ID of the layer.
|
static Layer |
of(IOConsumer<Layout> layout)
|
int |
size()
The size of the content in bytes.
|
void |
writeTo(java.io.OutputStream outputStream)
Write the content to the given output stream.
|
public LayerId getId()
public int size()
Contentpublic void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
Contentpublic static Layer of(IOConsumer<Layout> layout) throws java.io.IOException
layout - the layer layoutjava.io.IOException - on IO errorpublic static Layer fromTarArchive(TarArchive tarArchive) throws java.io.IOException
Layer from a TarArchive.tarArchive - the contents of the layerjava.io.IOException - on error