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) {}
        }
}

-----Message d'origine-----
De : Vishal Dutt <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : mercredi 19 juillet 2000 15:55
Objet : Re: JDBC Problem


>JDBC Connection started  working , after I started the Listener in Oracle
>8.1.5(oracle 8i)
>
>
>Vishal Dutt
>
>Chile-Santiago
>home=56-2-2339726(apartment no 1503)
>office=56-2-3383460
>
>
>        -----Original Message-----
>        From:   Murat Can Ganiz [SMTP:[EMAIL PROTECTED]]
>        Sent:   Wednesday, July 19, 2000 04:46
>        To:     [EMAIL PROTECTED]
>        Subject:        Ynt:      JDBC Problem
>
>        I met same problem.You should use Oracle 8.1.6's JDBC2 driver  and
>also JDK
>        1.2.2.With this JDBC driver i can connect Oracle 8.0.5 dbms.
>
>        ----- Original Message -----
>        From: Neelesh <[EMAIL PROTECTED]>
>        To: <[EMAIL PROTECTED]>
>        Sent: Tuesday, July 18, 2000 8:46 AM
>        Subject: JDBC Problem
>
>
>        > Hi,
>        >
>        > I am facing a major problem I am not able to incorporate paging
in
>java
>        > servlets I hava Apache webserver on linux with Jserv as the
>servlet engine
>        > and Oracle database server on NT I am using JDBC thin type 4
>driver for
>        > connecting to the database. I am not able to use JDBC 2.0 Cursor
>as it
>        does
>        > not support JDBC 2.0 API's Please can anyone help me solve the
>paging
>        issue
>        > becuase otherwise i'll have to take the sequential approach and
us
>.next()
>        > method to reach a particular record and the display the record
for
>that
>        > current page this will drastically reduce the performance
>        >
>        > Please can anybody help
>        >
>        > ------------------------------------------------------
>        >
>        > Neelesh Kripalani
>        > Sr. Programmer
>        > Choksi Technologies Pvt. Ltd.
>        > 809-812, 'A' Wing, Dalamal Towers,
>        > Nariman Point,
>        > Mumbai - 400 021, India
>        >
>        > Tel. - +91 22 230 8448 (Ext. - 115)
>        > Fax - +91 22 230 8450
>        > www.ctechworld.com
>        > C-Tech...e-thinking
>        > -------------------------------------------------------
>        >
>        > C-Tech's E-mail Confidentiality Statement - The information
>contained in
>        > this message may be privileged and confidential and protected
from
>        > disclosure. If the reader of this message is not the intended
>recipient,
>        or
>        > an employee or agent responsible for delivering this message to
>the
>        intended
>        > recipient, you are hereby notified that any dissemination,
>distribution or
>        > copying of this communication is strictly prohibited. If you have
>received
>        > this communication in error, please notify us immediately by
>replying to
>        the
>        > message and deleting it from your computer. Opinions, conclusions
>and
>        other
>        > information in this message that do not relate to the official
>business of
>
>        > C-Tech shall be understood as neither given nor endorsed by it.
>Thank you
>        >
>        >
>
>___________________________________________________________________________
>        > To unsubscribe, send email to [EMAIL PROTECTED] and include
in
>the
>        body
>        > of the message "signoff SERVLET-INTEREST".
>        >
>        > Archives:
>http://archives.java.sun.com/archives/servlet-interest.html
>        > Resources:
>http://java.sun.com/products/servlet/external-resources.html
>        > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>        >
>
>
>___________________________________________________________________________
>        To unsubscribe, send email to [EMAIL PROTECTED] and include in
>the body
>        of the message "signoff SERVLET-INTEREST".
>
>        Archives:
>http://archives.java.sun.com/archives/servlet-interest.html
>        Resources:
>http://java.sun.com/products/servlet/external-resources.html
>        LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to