comparison src/goodjava/lucene/logging/LogInputStream.java @ 1557:117ce8645b7f

lucene logging - add long string
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 11 Oct 2020 18:29:58 -0600
parents 7d145095cc0b
children
comparison
equal deleted inserted replaced
1556:52241b69c339 1557:117ce8645b7f
1 package goodjava.lucene.logging; 1 package goodjava.lucene.logging;
2 2
3 import java.io.InputStream; 3 import java.io.InputStream;
4 import java.io.DataInputStream; 4 import goodjava.io.DataInputStream;
5 import java.io.IOException; 5 import java.io.IOException;
6 import java.util.List; 6 import java.util.List;
7 import java.util.ArrayList; 7 import java.util.ArrayList;
8 import java.util.Map; 8 import java.util.Map;
9 import java.util.LinkedHashMap; 9 import java.util.LinkedHashMap;
39 switch(type) { 39 switch(type) {
40 case LogFile.TYPE_NULL: 40 case LogFile.TYPE_NULL:
41 return null; 41 return null;
42 case LogFile.TYPE_STRING: 42 case LogFile.TYPE_STRING:
43 return readUTF(); 43 return readUTF();
44 case LogFile.TYPE_LONG_STRING:
45 return readString();
44 case LogFile.TYPE_INT: 46 case LogFile.TYPE_INT:
45 return readInt(); 47 return readInt();
46 case LogFile.TYPE_LONG: 48 case LogFile.TYPE_LONG:
47 return readLong(); 49 return readLong();
48 case LogFile.TYPE_FLOAT: 50 case LogFile.TYPE_FLOAT: