943,752 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1842
  • Java RSS
Feb 18th, 2009
0

Splitting an InputStream

Expand Post »
Yellow,

From my application - for some reason - I am able to send messages up to only 64k. I've been wondering if it is possible to split an InputStream into partitions of 64k, and then, on client side to join them again. Is this possible? Have you ever done such thing before? Please, share your experience.

Thanks for answers in advance,
Chaster
Similar Threads
Reputation Points: 12
Solved Threads: 3
Junior Poster in Training
Chaster is offline Offline
68 posts
since Jun 2007
Feb 18th, 2009
0

Re: Splitting an InputStream

Post your code (the part that is relevant to your question). http://java.sun.com/docs/books/tutor...ngWriting.html

Also, take a look at that example, particularly the part where the PrintWriter and BufferedReader objects are created.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
Feb 18th, 2009
0

Re: Splitting an InputStream

Thanks for the quick reply, however, I don't use sockets explicitly. I've been developing a P2P application using the JXTA platform. I didn't post code, since posting how I read a file's content into an InputStream would not make much sense...
Reputation Points: 12
Solved Threads: 3
Junior Poster in Training
Chaster is offline Offline
68 posts
since Jun 2007
Feb 18th, 2009
0

Re: Splitting an InputStream

well, somebody might know something I don't, but you're unlikely to get much help without posting code.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Help me convert these For loops to While Loops ASAP
Next Thread in Java Forum Timeline: echo char





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC