refactoring
This commit is contained in:
parent
4694292b74
commit
f48c3b9857
|
@ -35,4 +35,9 @@ public class CHeaderConsumer implements ConfigurationConsumer {
|
|||
public void handleEndStruct(ConfigStructure structure) throws IOException {
|
||||
ConfigStructure.headerWrite(structure, cHeader);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTotalEnd() {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,6 @@ public interface ConfigurationConsumer {
|
|||
void endFile() throws IOException;
|
||||
|
||||
void handleEndStruct(ConfigStructure structure) throws IOException;
|
||||
|
||||
void onTotalEnd();
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue