public class MapListFile extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_checkDuplicateEntry
非推奨です。
|
protected String |
_fileEncoding
非推奨です。
|
protected String |
_lineCommentMark
非推奨です。
|
protected boolean |
_skipLineSeparator
非推奨です。
|
| コンストラクタと説明 |
|---|
MapListFile()
非推奨です。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
MapListFile |
checkDuplicateEntry()
非推奨です。
|
protected MapListString |
createMapListString()
非推奨です。
|
protected String |
getFileEncoding()
非推奨です。
|
protected String |
getLineCommentMark()
非推奨です。
|
protected String |
ln()
非推奨です。
|
protected <KEY,VALUE> |
newLinkedHashMap()
非推奨です。
|
List<Object> |
readList(InputStream ins)
非推奨です。
Read the list string file.
|
Map<String,Object> |
readMap(InputStream ins)
非推奨です。
Read the map string file.
|
Map<String,List<String>> |
readMapAsStringListValue(InputStream ins)
非推奨です。
Read the map string file as string list value.
|
Map<String,Map<String,String>> |
readMapAsStringMapValue(InputStream ins)
非推奨です。
Read the map string file as string map value.
|
Map<String,String> |
readMapAsStringValue(InputStream ins)
非推奨です。
Read the map string file as string value.
|
String |
readString(InputStream ins)
非推奨です。
Read the string file.
|
protected String |
removeInitialUnicodeBomIfNeeds(String encoding,
String value)
非推奨です。
|
MapListFile |
skipLineSeparator()
非推奨です。
|
void |
writeList(OutputStream ous,
List<Object> list)
非推奨です。
|
void |
writeMap(OutputStream ous,
Map<String,? extends Object> map)
非推奨です。
|
void |
writeString(OutputStream ous,
String mapListString)
非推奨です。
|
protected final String _fileEncoding
protected final String _lineCommentMark
protected boolean _skipLineSeparator
protected boolean _checkDuplicateEntry
public Map<String,Object> readMap(InputStream ins) throws IOException
map:{
; key1 = string-value1
; key2 = list:{element1 ; element2 }
; key3 = map:{key1 = value1 ; key2 = value2 }
; ... = ...
}
ins - The input stream for DBFlute property file, which is closed here. (NotNull)IOException - When it fails to handle the IO.public Map<String,String> readMapAsStringValue(InputStream ins) throws IOException
e.g.
map:{
; key1 = string-value1
; key2 = string-value2
; ... = ...
}
ins - The input stream for DBFlute property file, which is closed here. (NotNull)IOException - When it fails to handle the IO.public Map<String,List<String>> readMapAsStringListValue(InputStream ins) throws IOException
e.g.
map:{
; key1 = list:{string-element1 ; string-element2 ; ...}
; key2 = list:{string-element1 ; string-element2 ; ...}
; ... = list:{...}
}
ins - The input stream for DBFlute property file, which is closed here. (NotNull)IOException - When it fails to handle the IO.public Map<String,Map<String,String>> readMapAsStringMapValue(InputStream ins) throws IOException
e.g.
map:{
; key1 = map:{string-key1 = string-value1 ; string-key2 = string-value2 }
; key2 = map:{string-key1 = string-value1 ; string-key2 = string-value2 }
; ... = map:{...}
}
ins - The input stream for DBFlute property file, which is closed here. (NotNull)IOException - When it fails to handle the IO.public void writeMap(OutputStream ous, Map<String,? extends Object> map) throws IOException
IOExceptionpublic List<Object> readList(InputStream ins) throws IOException
list:{
; element1
; list:{element2-1 ; element2-2 }
; map:{key3-1 = value3-1 ; key3-2 = value3-2 }
; ... = ...
}
ins - The input stream for DBFlute property file, which is closed here. (NotNull)IOException - When it fails to handle the IO.public void writeList(OutputStream ous, List<Object> list) throws IOException
IOExceptionpublic String readString(InputStream ins) throws IOException
ins - The input stream for DBFlute property file. (NotNull)IOException - When it fails to handle the IO.public void writeString(OutputStream ous, String mapListString) throws IOException
IOExceptionpublic MapListFile skipLineSeparator()
public MapListFile checkDuplicateEntry()
protected MapListString createMapListString()
protected String removeInitialUnicodeBomIfNeeds(String encoding, String value)
protected String ln()
protected <KEY,VALUE> LinkedHashMap<KEY,VALUE> newLinkedHashMap()
protected String getFileEncoding()
protected String getLineCommentMark()
Copyright © 2014–2021 The DBFlute Project. All rights reserved.