add getFileStream

This commit is contained in:
Looly
2023-12-23 19:13:12 +08:00
parent be1aeab2c7
commit 44c50a9c49
5 changed files with 20 additions and 23 deletions

View File

@@ -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);