Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you take string into InputStream?

Answer Posted / sudhakar p

Step 1: Convert String to byte array

Step 2: Create a ByteArrayInputStream passing bytes[] to to
the contructor

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is use of functional interface in java 8?

981


What is use of map in java?

959


How to sort an array from smallest to largest java?

949


What is the difference between @before and @beforeclass annotation?

1028


what is the difference between a threads start() and run() methods? : Java thread

967


why doesn't java run on all platforms?

984


Can a final variable be null?

962


what is nested class in java?

1107


How do you access command-line arguments within the code?

1008


Why string is called as immutable?

895


Can long be null in java?

960


What is the internal implementation of set in java?

885


Can we compare two strings in java?

964


What is a singleton in genetics?

1005


What is the purpose of file class?

973