代码搜索:InputStream
找到约 5,812 项符合「InputStream」的源代码
代码结果 5,812
www.eeworm.com/read/347848/11632209
java texteofdemo.java
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.PrintWriter;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
/**
www.eeworm.com/read/347848/11632218
java textfileinputdemo.java
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;
public class TextFileInputDemo
{
public static void main(Strin
www.eeworm.com/read/347848/11632254
java hasnextintdemo.java
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class HasNextIntDemo
{
public static void main(String[] args)
{
Scanne
www.eeworm.com/read/347848/11632262
java hasnextlinedemo.java
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.FileOutputStream;
public class HasNextLineDemo
{
www.eeworm.com/read/347848/11632288
java binaryinputdemo.java
import java.io.ObjectInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.FileNotFoundException;
public class BinaryInputDemo
{
public static void main(S
www.eeworm.com/read/347848/11632305
java eofdemo.java
import java.io.ObjectInputStream;
import java.io.FileInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.FileNotFoundException;
public class EOFDemo
{
p
www.eeworm.com/read/347848/11632307
java textfilescannerdemo.java
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class TextFileScannerDemo
{
public static void main(String[] args)
{
www.eeworm.com/read/261494/11642374
txt 从数据库中读取并生成图片的servlet.txt
作者:邵望
日期:2000-12-24 21:44:55
大体思路
1)创建ServletOutputStream对象out,用于以字节流的方式输出图像
2)查询数据库,用getBinaryStream方法返回InputStream对象in
3)创建byte数组用作缓冲,将in读入buf[],再由out输出
注:下面的例程中数据库连接用了ConnectionPool,以
www.eeworm.com/read/346959/11710311
java ioutils.java
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been in
www.eeworm.com/read/346959/11710317
java asciiinputstream.java
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been in