Skip to content

Commit

Permalink
Allow access to the built class byte[]
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepk authored and psuter committed Jul 19, 2012
1 parent fd83079 commit f1d2a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/cafebabe/ByteStream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ByteStream {
import ClassFileTypes._

private var bytes = new ByteArrayOutputStream
protected[cafebabe] def getBytes : Array[Byte] = bytes.toByteArray
def getBytes : Array[Byte] = { stream.flush() ; bytes.toByteArray }
private var stream: DataOutputStream = new DataOutputStream(bytes)

// appends bytes to the stream
Expand Down

0 comments on commit f1d2a58

Please sign in to comment.