URLStreamHandler实现二进制存储接口URLStore的抽象类URLStreamHandlerFactory接口,应用启动时应调用BaseURLStore.intall()将当前实例安装到JVMnull时抛出 declareType 异常null时抛出 declareType 异常
See ConditionChecks.checkNotNull(Object, Class, String, Object...) for details.ConditionChecks.checkTrue(boolean, Class, String, Object...) for details.md5指定的存储数据ByteBuffersrc转换为字节数组(byte[])src的数据类型可以是byte[],InputStream,ByteBuffer,String(base64编码),File,URL,URI
否则抛出IllegalArgumentExceptionIOException
当src为File或FileInputStream时,使用NIO方式(BinaryUtils.readBytes(FileInputStream))读取ByteBuffer,InputStream,String(base64编码),File,URL,URI,否则抛出RuntimeExceptionURLStreamHandlerFactory in any environment.URLStreamHandlerFactory实例安装到JVMInputStream读取字节数组in为FileInputStream时,调用BinaryUtils.readBytes(FileInputStream)(NIO方式)读取InputStreamFileInputStream读取字节数组InputStreamdata数据保存在file指定的文件中file所在文件夹不存在,则会自动创建所有的文件夹Copyright © 2024. All Rights Reserved.