Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter 6 - samples folder Framing.delimiter(ByteString("\n"), Integer.MAX_VALUE)) #15

Open
cavapoo2 opened this issue Jul 14, 2017 · 0 comments

Comments

@cavapoo2
Copy link

was throwing errors about "100" string not being able to convert toInt.

Need to add carrage return on Windows

Framing.delimiter(ByteString("\r\n"), Integer.MAX_VALUE))

also things like this i added

val sys = System.getProperty("os.name")
val inPath = if (sys.contains("Windows")) FileSystems.getDefault.getPath(file.getPath.drop(1)) else FileSystems.getDefault.getPath(file.getPath)

Windows seems to have a backslash preceding the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant