Ejemplo n.º 1
0
 public void write(Encoder encoder, CompilationFileState value) throws Exception {
   hashSerializer.write(encoder, value.getHash());
   resolveIncludesSerializer.write(encoder, value.getResolvedIncludes());
   sourceIncludesSerializer.write(encoder, value.getSourceIncludes());
 }
Ejemplo n.º 2
0
 public CompilationFileState read(Decoder decoder) throws Exception {
   CompilationFileState fileState = new CompilationFileState(hashSerializer.read(decoder));
   fileState.setResolvedIncludes(resolveIncludesSerializer.read(decoder));
   fileState.setSourceIncludes(sourceIncludesSerializer.read(decoder));
   return fileState;
 }