-
PropertyUtils - reflect set/get/is methods to write/read data. This can works well on Android.
-
PropertyBeanUtils - use
BeanInfo
to write/read data. Android doesn't supportjava.bean
package.
Search paths and files depending on time based naming rule.
Example 1
Use PathQuery
to search sub path of data/min/ which folder naming matches yyyy/MM/dd/HH.
PathQuery query = new PathQuery("data/min/", "yyyy/MM/dd/HH", TimeRollingType.HOUR);
List<FileQuery> queries = query.select(begin, end);
Example 2
Use FileQuery
to search files with naming rule:
- yyyyMMddHH - time based naming
- HR_ - prefix
- .json - postfix
FileQuery fileQuery = ...;
List<FileInfo> fis = fileQuery.select("HR_", ".json", "yyyyMMddHH", TimeRollingType.HOUR);
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.