code: public static Protos.Wallet parseToProto(InputStream input) throws IOException {
          CodedInputStream codedInput = CodedInputStream.newInstance(input);
          codedInput.setSizeLimit(WALLET_SIZE_LIMIT);
          return Protos.Wallet.parseFrom(codedInput);
      }
docs: Returns the loaded protocol buffer from the given byte stream. You normally want
  {@link Wallet#loadFromFile(File, WalletExtension...)} instead - this method is designed for low level
  work involving the wallet file format itself.