小编Loh*_*hit的帖子

使用BufferedReader.readLine()读取inputStream太慢了

我正在使用以下代码.

BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line = null;

StringBuilder responseData = new StringBuilder();
while((line = in.readLine()) != null) {
    responseData.append(line);
}
Run Code Online (Sandbox Code Playgroud)

但阅读200行需要12秒以上.

请帮忙

java sockets io

39
推荐指数
2
解决办法
18万
查看次数

10
推荐指数
1
解决办法
2万
查看次数

PL/SQL在IN CLAUSE中使用VARRAY

是否可以在pl/sql的IN CLAUSE中使用VARRAY?

oracle plsql oracle10g varray

8
推荐指数
1
解决办法
1万
查看次数

Struts2中的变量声明

如何在Struts2中声明变量并为该变量赋值?

java struts2

4
推荐指数
1
解决办法
2万
查看次数

Strut2 - 在下一个Action中获取Property值

我在用 <s:form action="someAction">

我的struts.xml包含

<action name="someAction" 
        class="com.test.testaction.getValue" 
        method="getValuedemo">
    <result name="success" type="redirectAction">demo</result>   
</action> 
Run Code Online (Sandbox Code Playgroud)

而我的行动包含

public class getValue extends ActionSupport{
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getValuedemo() {
        userName = "tmpUser";
    }
}
Run Code Online (Sandbox Code Playgroud)

我的问题是如何在demo.action中获取userName属性????? 请帮忙

struts2

2
推荐指数
1
解决办法
3508
查看次数

<s:textfield> struts2中的属性值

如何设置权利价值 <s:textfield>

我试过<s:textfield name="customerName" label="Customer Name" value='<s:property value="userInfo.customerName"' />但它没用.

请帮忙

struts2

2
推荐指数
1
解决办法
3万
查看次数

标签 统计

struts2 ×4

java ×2

io ×1

oracle ×1

oracle10g ×1

plsql ×1

servlets ×1

sockets ×1

varray ×1