From 52bf97e13a09ef276547fc68aeb7776de6e16043 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 8 Feb 2021 02:35:02 -0800 Subject: [PATCH] Updated SeaweedFS Java Client (markdown) --- SeaweedFS-Java-Client.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SeaweedFS-Java-Client.md b/SeaweedFS-Java-Client.md index 01dff52..7fd2251 100644 --- a/SeaweedFS-Java-Client.md +++ b/SeaweedFS-Java-Client.md @@ -15,16 +15,16 @@ Implemented APIs for file system storage. The blob storage APIs is not included. ## Read File ``` - FilerGrpcClient filerGrpcClient = new FilerGrpcClient("localhost", 18888); - SeaweedInputStream seaweedInputStream = new SeaweedInputStream(filerGrpcClient, "/test.zip"); + FilerClient filerClient = new FilerClient("localhost", 18888); + SeaweedInputStream seaweedInputStream = new SeaweedInputStream(filerClient, "/test.zip"); // next, you can use seaweedInputStream as a normal InputStream ``` ## Write File ``` - FilerGrpcClient filerGrpcClient = new FilerGrpcClient("localhost", 18888); - SeaweedOutputStream seaweedOutputStream = new SeaweedOutputStream(filerGrpcClient, "/test/"+filename); + FilerClient filerClient = new FilerClient("localhost", 18888); + SeaweedOutputStream seaweedOutputStream = new SeaweedOutputStream(filerClient, "/test/"+filename); // next, you can use seaweedOutputStream as a normal OutputStream ```