olabusayoT commented on a change in pull request #254: Adds hex/utf-8 data dump
on left over data
URL: https://github.com/apache/incubator-daffodil/pull/254#discussion_r298674702
##########
File path: daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
##########
@@ -905,13 +907,26 @@ object Main extends Logging {
}
} else {
// not streaming, show left over data warning
+ val Dump = new DataDumper
+ var (dataText, dataHex) = ("", "")
+ var curPositionInByte0b = inStream.inputSource.position
+ var bytesAvailable = inStream.inputSource.bytesAvailable
+ var bytesLimit = math.min(8, bytesAvailable).toInt
+ val destArray = new Array[Byte](bytesLimit)
+ val ret = inStream.inputSource.get(destArray, 0,
bytesLimit)
Review comment:
Created [DAFFODIL- 2173](https://issues.apache.org/jira/browse/DAFFODIL-2173
) to account for this issue
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services