Port: Lock classes, InputStreamDataInput