Mercurial Hosting > luan
annotate src/goodjava/rpc/FixedLengthInputStream.java @ 2015:61b0cc7db09c fixssl
Manually specify letsencrypt server due to acme default server change (to zerossl)
| author | Violet7 | 
|---|---|
| date | Sat, 27 Sep 2025 13:37:11 -0700 | 
| parents | 491b355acef7 | 
| children | 
| rev | line source | 
|---|---|
| 1402 
27efb1fcbcb5
move luan.lib to goodjava
 Franklin Schmidt <fschmidt@gmail.com> parents: 
1118diff
changeset | 1 package goodjava.rpc; | 
| 1118 | 2 | 
| 3 import java.io.InputStream; | |
| 4 import java.io.IOException; | |
| 5 import java.io.EOFException; | |
| 6 | |
| 7 | |
| 1490 
9a2a2181a58f
FixedLengthInputStream
 Franklin Schmidt <fschmidt@gmail.com> parents: 
1402diff
changeset | 8 final class FixedLengthInputStream extends goodjava.io.FixedLengthInputStream { | 
| 1118 | 9 | 
| 10 public FixedLengthInputStream(InputStream in,long len) { | |
| 1490 
9a2a2181a58f
FixedLengthInputStream
 Franklin Schmidt <fschmidt@gmail.com> parents: 
1402diff
changeset | 11 super(in,len); | 
| 1118 | 12 } | 
| 13 | |
| 14 public void close() throws IOException { | |
| 15 while( left > 0 ) { | |
| 16 if( skip(left) == 0 ) | |
| 17 throw new EOFException(); | |
| 18 } | |
| 19 } | |
| 20 | |
| 21 } | 
