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

I/O utils for Java serialization #127

Merged
merged 4 commits into from
Mar 15, 2017
Merged

I/O utils for Java serialization #127

merged 4 commits into from
Mar 15, 2017

Conversation

pathikrit
Copy link
Owner

No description provided.

Copy link
Contributor

@frosforever frosforever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WNBC

README.md Outdated
file.newOutputStream.buffered.asObjectOutputStream.serialize(obj).flush()

// Read
val person2 = file.newInputStream.map.buffered.asObjectInputStream.readObject().asInstanceOf[A])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A -> asInstanceOf[Person]

@pathikrit pathikrit merged commit 0c79204 into master Mar 15, 2017
@pathikrit pathikrit deleted the serialization-utils branch March 15, 2017 19:00
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

Successfully merging this pull request may close these issues.

2 participants