- 博客(7)
- 资源 (2)
- 收藏
- 关注
转载 Java之FileChannel类的理解和使用
Java NIO中的FileChannel是一个连接到文件的通道。可以通过文件通道读写文件。FileChannel无法设置为非阻塞模式,它总是运行在阻塞模式下。打开FileChannel在使用FileChannel之前,必须先打开它。但是,我们无法直接打开一个FileChannel,需要通过使用一个InputStream、OutputStream或RandomAccessFile来
2017-06-23 15:37:01 1385
转载 Java RandomAccessFile用法
RandomAccessFileRandomAccessFile是用来访问那些保存数据记录的文件的,你就可以用seek( )方法来访问记录,并进行读写了。这些记录的大小不必相同;但是其大小和位置必须是可知的。但是该类仅限于操作文件。RandomAccessFile不属于InputStream和OutputStream类系的。实际上,除了实现DataInput和DataOutput接
2017-06-23 15:14:16 232
转载 StringUtils 解析公共类com.alibaba.dubbo.common.utils
/* * Copyright 1999-2011 Alibaba Group. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt
2017-06-23 13:55:51 4418 1
转载 URL 解析公共类,源码自:com.alibaba.dubbo.common
阿里源码:可解析url示例: * http://www.facebook.com/friends?param1=value1¶m2=value2 * http://username:[email protected]:8080/list?version=1.0.0 * ftp://username:[email protected]:21/1/rea
2017-06-23 13:54:35 2680
原创 Collections.unmodifiableMap 用法解析
返回指定映射的不可修改视图。通俗的讲就是:产生一个只读的Map,当你调用此map的put方法时会抛错。public static Map unmodifiableMap(Map m)此方法允许模块为用户提供对内部映射的“只读”访问。在返回的映射上执行的查询操作将“读完”指定的映射。试图修改返回的映射(不管是直接修改还是通过其 collection 视图进行修改)将
2017-06-23 11:48:28 22498 1
原创 eclipse 使用maven generator 插件自动生成mybatis所需代码
一、 maven pom.xml文件中引入plugin插件 org.mybatis.generator mybatis-generator-maven-plugin 1.3.5
2017-06-06 14:31:54 6044
转载 mysql中int、bigint、smallint 和 tinyint的区别与长度的含义
最近使用MySQL数据库的时候遇到了多种数字的类型,主要有int,bigint,smallint和tinyint。其中比较迷惑的是int和smallint的差别。今天就在网上仔细找了找,找到如下内容,留档做个总结:使用整数数据的精确数字数据类型。bigint从 -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) 的整型
2017-06-06 11:02:50 337
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人