Solved

Java Replace-A-Word handler..

Posted on 1997-08-11
1
156 Views
Last Modified: 2006-11-17
I need a simple handler that can replace a word in a text. The built-in replace() function can only replace one char. So actually what I need is a way to enumerate through a plain text in a fast way...?
0
Comment
Question by:lassefar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
msmolyak earned 50 total points
ID: 1224729
Is InputStream something you are looking for. If you have a file you can create a Data inputStram on top of a FileInputStream (or FileRedaer in JDK 1.1) and go though the bytes (or characters) in that file one by one). You can write the result to some OutputStream or (Writer). If the data is in a string, you can
create a StringBufferInputStream (or StringReader). You also have a TokenizerStream which allow you to do some simple parsing of your text.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question