refactoring

This commit is contained in:
rusefi 2018-12-20 00:11:47 -05:00
parent 4694292b74
commit f48c3b9857
3 changed files with 39 additions and 0 deletions

View File

@ -35,4 +35,9 @@ public class CHeaderConsumer implements ConfigurationConsumer {
public void handleEndStruct(ConfigStructure structure) throws IOException {
ConfigStructure.headerWrite(structure, cHeader);
}
@Override
public void onTotalEnd() {
}
}

View File

@ -8,4 +8,6 @@ public interface ConfigurationConsumer {
void endFile() throws IOException;
void handleEndStruct(ConfigStructure structure) throws IOException;
void onTotalEnd();
}

View File

@ -0,0 +1,32 @@
package com.rusefi;
import java.io.CharArrayWriter;
import java.io.IOException;
public class TSProjectConsumer implements ConfigurationConsumer {
private final CharArrayWriter tsWriter;
private static int totalTsSize;
public TSProjectConsumer(ReaderState state, CharArrayWriter tsWriter) {
this.tsWriter = tsWriter;
}
@Override
public void startFile() throws IOException {
}
@Override
public void endFile() throws IOException {
}
@Override
public void handleEndStruct(ConfigStructure structure) throws IOException {
}
@Override
public void onTotalEnd() {
}
}