base

Java Common Base

License

License

GroupId

GroupId

me.codeboy.common
ArtifactId

ArtifactId

base
Last Version

Last Version

1.3.9
Release Date

Release Date

Type

Type

jar
Description

Description

base
Java Common Base
Project URL

Project URL

https://github.com/androiddevelop/CommonBase
Source Code Management

Source Code Management

https://github.com/androiddevelop/CommonBase

Download base

How to add to project

<!-- https://jarcasting.com/artifacts/me.codeboy.common/base/ -->
<dependency>
    <groupId>me.codeboy.common</groupId>
    <artifactId>base</artifactId>
    <version>1.3.9</version>
</dependency>
// https://jarcasting.com/artifacts/me.codeboy.common/base/
implementation 'me.codeboy.common:base:1.3.9'
// https://jarcasting.com/artifacts/me.codeboy.common/base/
implementation ("me.codeboy.common:base:1.3.9")
'me.codeboy.common:base:jar:1.3.9'
<dependency org="me.codeboy.common" name="base" rev="1.3.9">
  <artifact name="base" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.codeboy.common', module='base', version='1.3.9')
)
libraryDependencies += "me.codeboy.common" % "base" % "1.3.9"
[me.codeboy.common/base "1.3.9"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

CommonBase

Java通用类封装

Maven Central

引入方式

gradle

compile 'me.codeboy.common:base:1.3.9'

maven

 <dependency>
     <groupId>me.codeboy.common</groupId>
     <artifactId>base</artifactId>
     <version>1.3.9</version>
 </dependency>

JavaDoc

http://doc.codeboy.me/Base/

网络请求类使用,自动维持session

 try {
        //登录,验证用户名
        CBHttp.getInstance().connect("http://xxxx.com/checkUser")
                .method(CBMethod.POST)
                .data("name", "122", "password", "122")
                .execute();
                
        //获取后续信息
        String source = CBHttp.getInstance().connect("http://xxxx.com/getUserInfo").execute();
        CBLog.print(page);
    } catch (IOException e) {
        e.printStackTrace();
    }

类的说明(后续不断增加)

  • CBFileUtil

      文件操作。读取,写入等
    
  • CBImage

      图片处理工具
    
  • CBHttps

      https请求,get,post,能够维持session
    
  • CBHttp

      http请求,get,post,能够维持session
    
  • CBBase64

      base64 编码解码
    
  • CBMd5Sha

      md5 sha 加密
    
  • CBPrint

      打印
    
  • CBMapSortUtil

      排序map
    
  • CBStringUtil

      字符串工具
    
  • CBVersionUtil

      版本比较工具
    
  • CBTaskController, CBTask

      任务控制,有数量限制的执行一组任务
    
  • CBTimeWait (1.3.0+)

      时间等待,对Thead.sleep进行简单封装
    
  • CBTimer (1.3.0+)

      计时器,便捷进行时间统计
    

更新历史

  • v1.3.9

    修正CBFileUtil空指针问题。

  • v1.3.7

    优化CBFileUtil获取字节流。

  • v1.3.6

    1.CBFileUtil支持读取文件获取对应的byte数组;支持获取项目当前目录路径。 2.CBTaskController加入同步操作。

  • v1.3.4

    CBStringUtil支持多个字符串判空。

  • v1.3.3

    文件工具类CBFileUtil支持追加写入。

  • v1.3.2

    增加了计时器。

License

Copyright 2016 Yuedong.li

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.

有任何问题,欢迎发送邮件到[email protected]交流.

Versions

Version
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1