public static ECPublicKeyParameters readECParametersWithPublicKey(InputStream input) throws IOException {
  ECDomainParameters domainParameters=readECParameters(input);
  int length=input.read();
  byte[] point=new byte[length];
  input.read(point);
  short[] pointFormats=convertPointFormats(ECPointFormat.values());
  return TlsECCUtils.deserializeECPublicKey(pointFormats,domainParameters,point);
}

public static ECPublicKeyParameters readECParametersWithPublicKey ( InputStream input ) throws IOException { ECDomainParameters domainParameters = readECParameters ( input ) ; int length = input . read ( ) ; byte [ ] point = new byte [ length ] ; input . read ( point ) ; short [ ] pointFormats = convertPointFormats ( ECPointFormat . values ( ) ) ; return TlsECCUtils . deserializeECPublicKey ( pointFormats , domainParameters , point ) ; }
reads ecc domain parameters from an inputstream , all named formats and point formats are allowed . then , it also reads the public key provided in the input stream .
