Java 应用与开发 - 高级 I/O 编程个字符。 $ ^{1} $ ## Java 命名惯例 凡是以 InputStream 或 OutputStream 结尾的类型均为字节流, 凡是以 Reader 或 Writer 结尾的均为字符流。 ## 接下来… Java I/O 原理 基础 I/O 流 常用 I/O 流类型 I/O 应用 InputStream and OutputStream  ## I nputStream 抽象类 java.io.InputStream 是所有字节输入流类型的父类,该类中定义了以字节为单位读取数据的基本方法,并在其子类中进行了分化和实现。 ## 三 个基本的 read 方法 ▶ int read() ▶ int read(byte[] available() skip(long n) ▶ boolean markSupported() ## OutputStream java.io.OutputStream 与 java.io.InputStream 对应,是所有字节输出流类型的抽象父类。 ## 三 个基本的 write 方法 ▶ void write(int c) ▶ void write(byte[] buffer) void0 码力 | 27 页 | 609.17 KB | 2 年前3
Mybatis 3.3.0 中文用户指南SqlSessionFactory 的实例。 从 XML 文件中构建 SqlSessionFactory 的实例非常简单,建议使用类路径下的资源文件进行配置。但是也可以使用任意的输入流 (InputStream) 实例,包括字符串形式的文件路径或者 file:// 的 URL 形式的文件路径来配置。MyBatis 包含一个名叫 Resources 的工具类,它包含一些实用方法,可使从 classpath "org/mybatis/example/mybatis-config.xml"; InputStream inputStream = Resources.getResourceAsStream(resource); sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream); XML 配置文件(configuration XML)中包含了对 实例。 SqlSessionFactory build(InputStream inputStream) SqlSessionFactory build(InputStream inputStream, String environment) SqlSessionFactory build(InputStream inputStream, Properties properties) SqlSessionFactory0 码力 | 98 页 | 2.03 MB | 2 年前3
JAVA 应用与开发 - 控制台应用程序设计propertyNames() String getProperty(String key) Object setProperty(string key, String value) void load(InputStream inStream) void store(OutputStream out, String header) ## 标准输入/输出 ## 标准输入/输出 ## 控制台程序的交互方式 ☑ 标准输入/输出的分类 java.lang.System 类的三个静态类成员提供了有关标准输入/输出的 IO 操作功能。 System.in 从 “标准输入” 读入数据(java.io.InputStream 类型) System.out 向 “标准输出” 写出数据(java.io.PrintStream 类型) System.err 向 “标准错误” 写出数据(java.io.PrintStream ## 标准输入/输出的分类 java.lang.System 类的三个静态类成员提供了有关标准输入/输出的 IO 操作功能。 System.in 从“标准输入”读入数据(java.io.InputStream 类型) System.out 向 “标准输出” 写出数据(java.io.PrintStream 类型) System.err 向“标准错误”写出数据(java.io.PrintStream0 码力 | 63 页 | 2.84 MB | 2 年前3
Introduction to Apache Flink and Apache Kafka - CS 591 K1: Data Stream Processing and Analytics Spring 2020print() ).Output and execute the program! } ## Map val inputStream: DataStream[(Int, Double)] = ... val result: DataStream[Int] = inputStream.map(new MyMapFunction) class MyMapFunction extends MapFunction[(Int (Int, Double)): Int = { value._1 } } ## Filter val inputStream: DataStream[Int] = ... val result: DataStream[Int] = inputStream.filter(_ > 0) filter ## union val tempStream: DataStream[SensorReading] 8/6/d/0/86d061c164744c6ce188357a43cc9699/p15_1.jpg) inputStream.keyBy(0).sum(1).print() ## keyBy [DataStream -> KeyedStream] val inputStream = env.fromElements( (1, 2, 2), (2, 3, 1), (2, 2,0 码力 | 26 页 | 3.33 MB | 2 年前3
《Java 应用与开发》课程讲义 - 王晓东169 13.1.2 Java I/O 流的分类 ..... 169 13.2 基础 I/O 流 ..... 170 13.2.1 InputStream and OutputStream ..... 170 13.2.2 InputStream ..... 171 13.2.3 OutputStream ..... 171 13.2.4 Reader and Writer . MVC 作用原理 ..... 148 12.1 Java 异常分类 ..... 152 13.1 InputStream 和 OutputStream ..... 170 13.2 InputStream 和 OutputStream ..... 170 13.3 InputStream 和 OutputStream ..... 172 14.1 Java 线程生命周期状态 .... getProperty(String key) 获得特定系统属性的属性值。 Object setProperty(string key, String value) 设置/添加单个系统属性信息。 void load(InputStream inStream) void store(OutputStream out, String header) 实现属性信息的导入/导出操作。 ### 9.4 标准输入/输出 #### 90 码力 | 330 页 | 6.54 MB | 2 年前3
MyBatis 框架尚硅谷 java 研究院版本:V 1.0"mybatis-config.xml"; InputStream inputStream = Resources.getResourceAsStream(resource); SqlSessionFactory sqlSessionFactory = new SqlSessionFactory() { build(inputStream); System.out.printl "mybatis-config.xml"; InputStream inputStream = Resources.getResourceAsStream(resource); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder() .build(inputStream); SqlSession0 码力 | 44 页 | 926.54 KB | 2 年前3
传智播客 mybatis 框架课程讲义throws IOException { // 配置文件 String resource = "SqlMapConfig.xml"; InputStream inputStream = Resources.getResourceAsStream(resource); // 使用SqlSessionFactoryBuilder从xml配置文件中创建 SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder() .build(inputStream); } // 根据 id 查询用户信息 @Test public void testFindUserById() { // 数据库会话实例 SqlSession sqlSession InputStream inputStream = Resources.getResourceAsStream(resource); // 使用SqlSessionFactoryBuilder创建sessionFactory sqlSessionFactory builder() .build(inputStream); }0 码力 | 75 页 | 1.16 MB | 2 年前3
Apache ActiveMQ Artemis 1.0.0 User ManualTo send a large message, the user can set an InputStream on a message body, and when that message is sent, Apache ActiveMQ Artemis will read the InputStream. A FileInputStream could be used for example example to send a huge message from a huge file on disk. As the InputStream is read the data is sent to the server as a stream of fragments. The server persists these fragments to disk as it receives them and SocketInputStream, things you recovered from HTTPRequests etc. Anything as long as it implements java.io.InputStream for sending messages or java.io.OutputStream for receiving them. ## Streaming over Core API The0 码力 | 215 页 | 1.27 MB | 2 年前3
Apache ActiveMQ Artemis 1.5.3 User ManualTo send a large message, the user can set an InputStream on a message body, and when that message is sent, Apache ActiveMQ Artemis will read the InputStream. A FileInputStream could be used for example example to send a huge message from a huge file on disk. As the InputStream is read the data is sent to the server as a stream of fragments. The server persists these fragments to disk as it receives them and SocketInputStream, things you recovered from HTTPRequests etc. Anything as long as it implements java.io.InputStream for sending messages or java.io.OutputStream for receiving them. ## Streaming over Core API The0 码力 | 243 页 | 1.31 MB | 2 年前3
Apache ActiveMQ Artemis 1.3.0 User ManualTo send a large message, the user can set an InputStream on a message body, and when that message is sent, Apache ActiveMQ Artemis will read the InputStream. A FileInputStream could be used for example example to send a huge message from a huge file on disk. As the InputStream is read the data is sent to the server as a stream of fragments. The server persists these fragments to disk as it receives them and SocketInputStream, things you recovered from HTTPRequests etc. Anything as long as it implements java.io.InputStream for sending messages or java.io.OutputStream for receiving them. ## Streaming over Core API The0 码力 | 247 页 | 1.47 MB | 2 年前3
共 181 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
相关搜索词
I/O流字节流字符流InputStreamOutputStreamMyBatisXML映射文件动态SQL日志工厂SqlSessionFactory控制台应用程序命令行参数标准输入输出文件操作Jar工具Apache FlinkApache KafkaDataStream APITaskManagerPartitionJava 应用与开发Java SEJava EE开发环境配置面向对象编程持久层框架SQL映射Mapper接口事务管理MyBatis框架SQL语句映射DAO开发方法ApacheActiveMQArtemis1.0activemqartemispdfApache ActiveMQ ArtemisProtocolsLoggingSecurityMessage QueuesActiveMQ Artemis配置协议支持安装使用













