public class MapListFile extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_checkDuplicateEntry |
protected String |
_fileEncoding |
protected String |
_lineCommentMark |
protected boolean |
_skipLineSeparator |
| コンストラクタと説明 |
|---|
MapListFile() |
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–2015 The DBFlute Project. All rights reserved.