Convert Utils
class ConvertUtils
Content copied to clipboard
author: Blankj
blog : http://blankj.com
time : 2016/08/13
desc : utils about convert
Functions
bitmap2Bytes
Link copied to clipboard
open fun bitmap2Bytes(bitmap: Bitmap, format: Bitmap.CompressFormat): Array<Byte>
Content copied to clipboard
bitmap2Drawable
Link copied to clipboard
bits2Bytes
Link copied to clipboard
byte2FitMemorySize
Link copied to clipboard
byte2MemorySize
Link copied to clipboard
bytes2Bitmap
Link copied to clipboard
bytes2Bits
Link copied to clipboard
bytes2Chars
Link copied to clipboard
bytes2Drawable
Link copied to clipboard
bytes2HexString
Link copied to clipboard
bytes2InputStream
Link copied to clipboard
bytes2OutputStream
Link copied to clipboard
chars2Bytes
Link copied to clipboard
drawable2Bitmap
Link copied to clipboard
drawable2Bytes
Link copied to clipboard
open fun drawable2Bytes(drawable: Drawable, format: Bitmap.CompressFormat): Array<Byte>
Content copied to clipboard
hexString2Bytes
Link copied to clipboard
input2OutputStream
Link copied to clipboard
inputStream2Bytes
Link copied to clipboard
inputStream2String
Link copied to clipboard
open fun inputStream2String(is: InputStream, charsetName: String): String
Content copied to clipboard
memorySize2Byte
Link copied to clipboard
millis2FitTimeSpan
Link copied to clipboard
millis2TimeSpan
Link copied to clipboard
output2InputStream
Link copied to clipboard
outputStream2Bytes
Link copied to clipboard
outputStream2String
Link copied to clipboard
open fun outputStream2String(out: OutputStream, charsetName: String): String
Content copied to clipboard
string2InputStream
Link copied to clipboard
open fun string2InputStream(string: String, charsetName: String): InputStream
Content copied to clipboard
string2OutputStream
Link copied to clipboard
open fun string2OutputStream(string: String, charsetName: String): OutputStream
Content copied to clipboard
timeSpan2Millis
Link copied to clipboard
view2Bitmap
Link copied to clipboard