Java is case sensitive. Change your Bufferedreader to BufferedReader.
regards
Y
----- Original Message -----
From: Rapha�l Grandjean <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 7:32 PM
Subject: Re: changes to Java Bean not accessable to JSP
> Hello,
> I use Jbuilder to make a simple class and I have an error:
> for example class Bufferedreader not found in class
fr.cegetel.map.citation
> ...
> ...
>
>
> but I don't undersstand:
> The code of my class is:
> package fr.cegetel.map.citation;
>
>
>
> import java.util.*;
> import java.io.*;
> import java.lang.*;
>
>
>
> public class Quote {
>
>
> public Quote() {
> super();}
>
>
> public static void main(String[]args)
> {
>
> try {
>
>
> r�cup�ration du fichier de donn�es:data.txt
>
> FileInputStream fic1 = new
> FileInputStream("D:/FtpRoot/Havas/citation/data.txt");
>
> file://on transforme ce fichier de type FileInputStream en
> BufferedReader
> file://pour acc�der notamment � la m�thode readLine()
> Bufferedreader bufferedReader = new BufferedReader(fic1);
> String line = null;
> Vector V = new Vector();
>
> file://parcours du fichier et stockage des lignes dans un
> vecteur v
> while ((line = bufferedReader.readLine() != null)){
> V.addElement=line;
>
> }
>
>
> file://Int Num_line = Random().nextInt(V.size);
> file://String RanLine = (String)V.elementAt(Num_line);
> String Line = (String)V.elementAt(1);
> file://cr�ation du fichier quote.xml de destination
>
> DataOutputStream fic2 = new
> DataOutputStream("D:/FtpRoot/Havas/citation/quote.xml");
> fic2.writeBytes("<?xml version=\"1.0\"
> encoding=\"ISO-8859-1\"?>");
> fic2.writeBytes("<DOCUMENT>");
> fic2.writeBytes("<AUTEUR>" + FindInTag(auteur,Line) +
> "</AUTEUR>");
> fic2.writeBytes("<CITATION>" + FindInTag(citation,Line) +
> "</CITATION>");
> fic2.writeBytes("<OPUS>" + FindInTag(opus,Line) +
> "</OPUS>");
> fic2.writeBytes("<COMMENTAIRE>" + "</COMMENTAIRE>");
> fic2.writeBytes("</DOCUMENT>");
>
> }
> catch (IOException e) {}
>
> V.remove(1);
> }
> file://traitement des diff�rents tags:<auteur>,<citation>,<opus>
> file://cette fonction retourne le texte qui est entre les balises
> <auteur>
> file://<\auteur>,...les <br> et <\br> sont compris
>
> public String FindInTag(String Tag,String Line_a_traiter){
>
> try {
>
> String tag1 = "<" + Tag + ">";
> String tag2 = "</" + Tag + ">";
>
> Int index1 = Line_a_traiter.indexOf(tag1,0);
> Int index2 = Line_a_traiter.indexOf(tag2,tag1.lenght);
>
> String Sous_Chaine =
> Line_a_traiter.substring(index1+tag1.lenght,index2+1);
>
> return Sous_Chaine;
>
> } catch(IOException e) {}
> }
> }
>
>
> Thanks for the response
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets