in atomos/src/main/java/org/apache/felix/atomos/impl/base/AtomosStorage.java [217:249]
private void writeLayer(AtomosLayerBase layer, DataOutputStream out)
throws IOException
{
out.writeUTF(layer.getName());
out.writeLong(layer.getId());
out.writeUTF(layer.getLoaderType().toString());
List<Path> paths = layer.getPaths();
out.writeInt(paths.size());
for (Path path : paths)
{
out.writeUTF(path.toUri().toString());
}
List<AtomosLayer> parents = layer.getParents();
out.writeInt(parents.size());
for (AtomosLayer parent : parents)
{
out.writeLong(parent.getId());
}
Set<AtomosContent> contents = layer.getAtomosContents();
out.writeInt(contents.size());
for (AtomosContent content : contents)
{
String atomosLocation = content.getAtomosLocation();
out.writeUTF(atomosLocation);
String connectLocation = content.getConnectLocation();
out.writeBoolean(connectLocation != null);
if (connectLocation != null)
{
out.writeUTF(connectLocation);
}
}
}