He-Pin commented on PR #1085:
URL: https://github.com/apache/incubator-pekko/pull/1085#issuecomment-1921944837

   > > I just checked in Netty, there is a `public class ByteBufInputStream 
extends InputStream implements DataInput`, Do you think we can have a `class 
ByteStringInputString extends InputStream implements DataInput`?
   > 
   > I checked that already. Unfortunately, Scala conversion to JavaEnumeration 
only seem to work on Scala Iterators and not on Scala Collections.
   > 
   > With this change:
   > ```
   > [error] 
/Users/pj.fanning/code/incubator-pekko/actor/src/main/scala-2.13/org/apache/pekko/util/ByteString.scala:586:64:
 value asJavaEnumeration is not a member of 
scala.collection.immutable.Vector[java.io.InputStream]
   > [error]       new 
SequenceInputStream(bytestrings.map(_.asInputStream).asJavaEnumeration)
   > ```
   
   'bytestrings.iterator.map(_.asInputStream).asJavaEnumeration'


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to