mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add getFileStream
This commit is contained in:
@@ -135,7 +135,7 @@ public class FtpTest {
|
||||
@Disabled
|
||||
public void readTest() throws Exception {
|
||||
try (final CommonsFtp ftp = CommonsFtp.of("localhost");
|
||||
final BufferedReader reader = new BufferedReader(new InputStreamReader(ftp.read("d://test/read/", "test.txt")))) {
|
||||
final BufferedReader reader = new BufferedReader(new InputStreamReader(ftp.getFileStream("d://test/read/", "test.txt")))) {
|
||||
String line;
|
||||
while (StrUtil.isNotBlank(line = reader.readLine())) {
|
||||
Console.log(line);
|
||||
|
Reference in New Issue
Block a user