view src/goodjava/rpc/FixedLengthInputStream.java @ 2092:429827024f4e ssltesting tip

inline local_https.sh + minor
author Violet7
date Fri, 12 Dec 2025 18:53:15 -0800
parents 491b355acef7
children
line wrap: on
line source

package goodjava.rpc;

import java.io.InputStream;
import java.io.IOException;
import java.io.EOFException;


final class FixedLengthInputStream extends goodjava.io.FixedLengthInputStream {

	public FixedLengthInputStream(InputStream in,long len) {
		super(in,len);
	}

    public void close() throws IOException {
        while( left > 0 ) {
			if( skip(left) == 0 )
				throw new EOFException();
		}
    }

}