Java tutorial
//package com.java2s; //* Licensed Materials - Property of IBM, Miracle A/S, and * import java.io.ByteArrayInputStream; public class Main { public static Boolean readBoolean(ByteArrayInputStream bais) { int b = bais.read(); if (b == 0) { return Boolean.FALSE; } else { return Boolean.TRUE; } } }