Convert the given code into JTREE !!!

package ref;
import java.lang.reflect.*;
class Provider {
public int i=0,j=2;
private float f=3.0f;
static double d=5.8;
int a[] = new int[10];
final int g=10;
String str;
protected double y[][]=new double[5][3];
public Provider() {
protected Provider(int c) {
public final void add(float f,double d,String s) throws ClassCastException {
private int add(int a,int b) {
return j;
public double sub(int a,int b,int c,int d) {
return d;
}//end of provider class
class Requester {
public void requesttoprovide(Object o) {
Class c1;
Method method[];
Field field[];
Constructor constructor[];
try {
c1=Class.forName(o.getClass() .getName() );//return fully qualified name
method=c1.getDeclaredMethods() ;
field=c1.getDeclaredFields() ;
constructor=c1.getDeclaredConstructors() ;
for(int i=0;i<method.length ;i++) {
System.out.println(" Method # " + i + " = " + method);
System.out.println(" Method Return Type is = " + method[i].getReturnType() );
switch(method[i].getModifiers()) {
case Modifier.PUBLIC :
System.out.println(" METHOD'S MODIFIER IS = 'PUBLIC' ");
break;
case Modifier.PRIVATE :
System.out.println(" METHOD'S MODIFIER IS = 'PRIVATE' ");
break;
case Modifier.ABSTRACT :
System.out.println(" METHOD'S MODIFIER IS = 'ABSTRACT' ");
break;
case Modifier.FINAL :
System.out.println(" METHOD'S MODIFIER IS = 'FINAL' ");
break;
case Modifier.PROTECTED :
System.out.println(" METHOD'S MODIFIER IS = 'PROTECTED' ");
break;
case Modifier.STATIC :
System.out.println(" METHOD'S MODIFIER IS = 'STATIC' ");
break;
case Modifier.TRANSIENT :
System.out.println(" METHOD'S MODIFIER IS = 'TRANSIENT' ");
break;
case Modifier.VOLATILE :
System.out.println(" METHOD'S MODIFIER IS = 'VOLATILE' ");
break;
case Modifier.NATIVE :
System.out.println(" METHOD'S MODIFIER IS = 'NATIVE' ");
break;
case Modifier.SYNCHRONIZED :
System.out.println(" METHOD'S MODIFIER IS = 'SYSCHRONIZED' ");
break;
case Modifier.STRICT :
System.out.println(" METHOD'S MODIFIER IS = 'STRICT' ");
break;
default :
System.out.println(" NO MODIFIER GIVEN ");
}//end of switch
System.out.println(" Method Found in a Class Name i.e = " + method[i].getDeclaringClass() );
for(int i=0;i<field.length ;i++) {
System.out.println(" Field # " + i + " = " + field[i]);
System.out.println(" Type of Field is = " + field[i].getType()) ;
switch(field[i].getModifiers()) {
case Modifier.PUBLIC :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'PUBLIC' ");
break;
case Modifier.PRIVATE :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'PRIVATE' ");
break;
case Modifier.ABSTRACT :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'ABSTRACT' ");
break;
case Modifier.FINAL :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'FINAL' ");
break;
case Modifier.PROTECTED :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'PROTECTED' ");
break;
case Modifier.STATIC :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'STATIC' ");
break;
case Modifier.TRANSIENT :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'TRANSIENT' ");
break;
case Modifier.VOLATILE :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'VOLATILE' ");
break;
case Modifier.NATIVE :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'NATIVE' ");
break;
case Modifier.SYNCHRONIZED :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'SYSCHRONIZED' ");
break;
case Modifier.STRICT :
System.out.println(" THE MODIFIER FOR THIS FIELD IS = 'STRICT' ");
break;
default :
System.out.println(" NO MODIFIER GIVEN ");
}//end of switch
for(int i=0;i<constructor.length ;i++) {
System.out.println("Constructor # " + i + " = " + constructor[i]);
switch(constructor[i].getModifiers() ) {
case Modifier.PUBLIC :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'PUBLIC' ");
break;
case Modifier.PRIVATE :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'PRIVATE' ");
break;
case Modifier.ABSTRACT :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'ABSTRACT' ");
break;
case Modifier.FINAL :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'FINAL' ");
break;
case Modifier.PROTECTED :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'PROTECTED' ");
break;
case Modifier.STATIC :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'STATIC' ");
break;
case Modifier.TRANSIENT :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'TRANSIENT' ");
break;
case Modifier.VOLATILE :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'VOLATILE' ");
break;
case Modifier.NATIVE :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'NATIVE' ");
break;
case Modifier.SYNCHRONIZED :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'SYSCHRONIZED' ");
break;
case Modifier.STRICT :
System.out.println(" CONCTRUCTOR'S MODIFIER IS = 'STRICT' ");
break;
default :
System.out.println(" NO MODIFIER GIVEN ");
}//end of switch
//System.out.println(" " + constructor[i].getParameterTypes() );
}catch(Exception e) {
System.out.println(e.getMessage() );
public class MainClass {
public static void main(String args[]) {
Provider p=new Provider();
//Class obj=p.getClass() ;
//System.out.println(obj.getName() );
Requester req=new Requester();
req.requesttoprovide(p) ;

hi welcome to java forum,
please do one thing for me so that i can help you, can you put your code in a code tag [code ][code ] (without spaces) so that your code can be readable easily

Similar Messages

  • How to convert the following code into an applet

    Please reply for me as soon as you can.
    import java.io.*;
    import java.awt.Frame;
    import java.awt.FlowLayout;
    import java.awt.Color;
    import java.awt.Insets;
    import java.awt.Dimension;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    import java.util.Enumeration;
    import javax.comm.CommPort;
    import javax.comm.CommPortIdentifier;
    import javax.comm.SerialPort;
    import javax.comm.NoSuchPortException;
    import javax.comm.PortInUseException;
    public class BlackBox extends Frame implements WindowListener
         static int               portNum = 0,
                             panelNum = 0,
                             rcvDelay = 0;
         static SerialPortDisplay[]     portDisp;
         static BlackBox           win;
         static boolean               threaded = true,
                             silentReceive = false,
                             modemMode = false,
                             friendly = false;
         public BlackBox()
              super("Serial Port Black Box Tester");
              addNotify();
              addWindowListener(this);
         public void windowIconified(WindowEvent event)
         public void windowDeiconified(WindowEvent event)
         public void windowOpened(WindowEvent event)
         public void windowClosed(WindowEvent event)
         public void windowActivated(WindowEvent event)
         public void windowDeactivated(WindowEvent event)
         public void windowClosing(WindowEvent event)
              cleanup();
              dispose();
              System.exit(0);
         public static void main(String[] args)
              Enumeration           ports;
              CommPortIdentifier     portId;
              boolean               allPorts = true,
                             lineMonitor = false;
              int               idx = 0;
              win = new BlackBox();
              win.setLayout(new FlowLayout());
              win.setBackground(Color.gray);
              portDisp = new SerialPortDisplay[4];
              while (args.length > idx)
                   if (args[idx].equals("-h"))
                        printUsage();
                   else if (args[idx].equals("-f"))
                        friendly = true;
                        System.out.println("Friendly mode");
                   else if (args[idx].equals("-n"))
                        threaded = false;
                        System.out.println("No threads");
                   else if (args[idx].equals("-l"))
                        lineMonitor = true;
                        System.out.println("Line Monitor mode");
                   else if (args[idx].equals("-m"))
                        modemMode = true;
                        System.out.println("Modem mode");
                   else if (args[idx].equals("-s"))
                        silentReceive = true;
                        System.out.println("Silent Reciever");
                   else if (args[idx].equals("-d"))
                        idx++;
                        rcvDelay = new Integer(args[idx]).intValue();
                        System.out.println("Receive delay = "
                                  + rcvDelay + " msecs");
                   else if (args[idx].equals("-p"))
                        idx++;
                        while (args.length > idx)
                             * Get the specific port
                             try
                                  portId =
                                  CommPortIdentifier.getPortIdentifier(args[idx]);
                                  System.out.println("Opening port "
                                       + portId.getName());
                                  win.addPort(portId);
                             catch (NoSuchPortException e)
                                  System.out.println("Port "
                                            + args[idx]
                                            + " not found!");
                             idx++;
                        allPorts = false;
                        break;
                   else
                        System.out.println("Unknown option "
                                  + args[idx]);
                        printUsage();
                   idx++;
              if (allPorts)
                   * Get an enumeration of all of the comm ports
                   * on the machine
                   ports = CommPortIdentifier.getPortIdentifiers();
                   if (ports == null)
                        System.out.println("No comm ports found!");
                        return;
                   while (ports.hasMoreElements())
                        * Get the specific port
                        portId = (CommPortIdentifier)
                                       ports.nextElement();
                        win.addPort(portId);
              if (portNum > 0)
                   if (lineMonitor)
                        if (portNum >= 2)
                             portDisp[0].setLineMonitor(portDisp[1],
                                            true);
                        else
                             System.out.println("Need 2 ports for line monitor!");
                             System.exit(0);
              else
                   System.out.println("No serial ports found!");
                   System.exit(0);
         private void addPort(CommPortIdentifier     portId)
              * Is this a serial port?
              if (portId.getPortType()
              == CommPortIdentifier.PORT_SERIAL)
                   // Is the port in use?     
                   if (portId.isCurrentlyOwned())
                        System.out.println("Detected "
                                  + portId.getName()
                                  + " in use by "
                                  + portId.getCurrentOwner());
                   * Open the port and add it to our GUI
                   try
                        portDisp[portNum] = new
                             SerialPortDisplay(portId,
                                       threaded,
                                       friendly,
                                       silentReceive,
                                       modemMode,
                                       rcvDelay,
                                       win);
                        this.portNum++;
                   catch (PortInUseException e)
                        System.out.println(portId.getName()
                                  + " in use by "
                                  + e.currentOwner);
         public void addPanel(SerialPortDisplay     panel)
              Dimension     dim;
              Insets          ins;
              win.add(panel);
              win.validate();
              dim = panel.getSize();
              ins = win.getInsets();
              dim.height = ((this.panelNum + 1) * (dim.height + ins.top
                        + ins.bottom)) + 10;
              dim.width = dim.width + ins.left + ins.right + 20;
              win.setSize(dim);
              win.show();
              panelNum++;
         static void printUsage()
              System.out.println("Usage: BlackBox [-h] | [-f] [-l] [-m] [-n] [-s] [-d receive_delay] [-p ports]");
              System.out.println("Where:");
              System.out.println("\t-h     this usage message");
              System.out.println("\t-f     friendly - relinquish port if requested");
              System.out.println("\t-l     run as a line monitor");
              System.out.println("\t-m     newline is \\n\\r (modem mode)");
              System.out.println("\t-n     do not use receiver threads");
              System.out.println("\t-s     don't display received data");
              System.out.println("\t-d     sleep for receive_delay msecs after each read");
              System.out.println("\t-p     list of ports to open (separated by spaces)");
              System.exit(0);
         private void cleanup()
              SerialPort     p;
              while (portNum > 0)
                   portNum--;
                   panelNum--;
                   * Close the port
                   p = portDisp[portNum].getPort();
                   if (p != null)
                        System.out.println("Closing port "
                                  + portNum
                                  + " ("
                                  + p.getName()
                                  + ")");
                        portDisp[portNum].closeBBPort();
    }

    hi welcome to java forum,
    please do one thing for me so that i can help you, can you put your code in a code tag [code ][code ] (without spaces) so that your code can be readable easily

  • How to convert the text field into currency field

    Hi,
    I have an requirement to converting the text field into currency.
    If I convert directly it gives dump.
    If I convert this to Numeric means it takes the decimals also as whole value.
    Is there any FM to convert the text field into Currency field.
    Please advice me.
    Thanks in advance.

    Hi,
    I am on an SRM sytem, which unfortunately does not have th FM: PSSV_TEXT_INTO_FIELD_CURRENCY.
    But I also need to transfer a string value like '12,99' to a field with type curr.
    Can i Do that manually, or is there another FM?
    I have already checked code with write to or pack/unpack.
    But without success yet.
    Something like this:
    DATA: g_str(11) type c.
    DATA: g_p type p.
    WRITE '12,99' TO g_str CURRENCY 'EUR'.
    is no use for me. Finally I need to move g_str to my curr-field, which causes st22.
    also: PACK g_str to <curr-field or g_p> dumps.
    Help appreciated.
    regards, matthias

  • Converting the DATE(yyyymmdd) into MONTH(yyyymm) format

    HAI
    I have one date InfoObject(ZDATE) in the format of YYYYMMDD format.
    My client wants another 'Month InfoObject(ZMONTH) in the format of YYYYMM . This ZMONTH infoobject should be derived from ZDATE.
    So please tell me how can i convert the ZDATE data into ZMONTH format.
    I think , it is possible by writing the ABAP code.
    Please give the ABAP CODE for converting the ZDATE data into ZMONTH format also .
    i wll assing the points
    bye
    rizwan

    Hi Rizwan,
    You can use offset like:
    zmonth = zdate+0(6)
    Zmonth is variable in which yyyymm is going to be stored
    and zdate is variable in which yyyymmdd is stored.
    I think this will slove your issue.
    Thanks=points

  • Converting .rpt file code into Perl code

    Hi All,
    I have some .rpt file which contains the following code to generate the report in Oracle
    .declare booking_no a13
    .declare line_code a10
    .declare line_booking a12
    .declare book_date a11
    .declare taken_by a10
    .declare ud a10
    .declare ship_name a40
    .declare ship_addr1 a40
    .declare ship_addr2 a40
    .declare ship_addr3 a40
    .declare ship_cont a20
    .declare ship_phone a20
    .declare ship_ref a20
    .declare fwdr_name a40
    .declare po_no a20
    .declare vessel_name a25
    .declare voyage a10
    .declare etd_origin a11
    .declare sail_date a11
    .declare origin_name a20
    .declare load_name a20
    .declare disch_name a20
    set page_no 1
    .set first "N"
    .set no_more_clauses "N"
    .declare dest_name a20
    .declare disch_code a4
    .declare dest_code a4
    #dt 1 1 80 #
    #dt 2 1 6 9 48 50 61 63 76 80 80 #
    #dt 3 1 13 15 34 36 40 42 56 58 62 64 74 75 79 #
    #dt 4 1 13 15 49 53 64 66 80 #
    #dt 5 1 15 18 52 #
    .define lock_tables
    lock table booking_table, booking_hazmat, custdata2, edit_table,
    booking_rates, printer_table in share update mode
    .define get_input
    select passkey, '//FAX(fax=' || passkey1, passkey2,
    passkey3, passkey4, printer_name
    into input_booking_seq, fax_header, file_no,
    input_print_rates, myNoteId, printer_name
    from edit_table
    where edit_table.tag = 'BOOKING'
    and edit_table.key = 'PRINT'
    and edit_table.user_id = user
    .define get_user_info
    select user_location,user_name, user_company, &fax_header || ';style=' || letterhead,
    fax_printer, nvl(fax_yn,'N')
    into user_location, user_name, user_company, fax_header, fax_printer, fax_yn
    from security_header
    where user_id = lower(substr(user,5,10))
    .define get_fax_printer
    select &fax_header || ';print = Confirm;printer = ' || &fax_printer || ')'
    into fax_header
    from dual
    .define printMsg
    .execute formatMsg
    .if "&myNote = 'N/A' " then skipMyNote
    .print myNote
    .&skipMyNote
    .if "&myNoteExt = 'N/A' " then skipMyNoteExt
    .print myNoteExt
    .&skipMyNoteExt
    .add line_count line_count 9
    .execute lock_tables
    .execute get_input
    .execute printer_controls
    .execute get_top
    .execute get_user_info
    .execute get_user_office
    .rem --------- this section is added to print bookings by file -------
    .ifnull file_no skip_by_file
    .report get_lots file_loop
    .goto skip_to_end
    .&skip_by_file
    .rem ------------------------------------------------------------------
    .if "&fcl_lcl = 'F' " then ck_fcl
    .execute adjust_letterhead_lcl
    .goto skip_over_fcl
    .&ck_fcl
    .execute adjust_letterhead_fcl
    .&skip_over_fcl
    .if "&fax_yn = 'N' " then skip_confirm
    .execute get_fax_printer
    .goto skip_to_booking
    .&skip_confirm
    .execute set_no_confirm
    .&skip_to_booking
    .print_info
    I need to code to create a generic parser which actually convert the above code in a .rpt file into perl code and then finally the perl code could generate the report ...
    Please help me out for this to process and suggest me if there is any parser module available for that ....
    Shelley

    Is this topic is very new to all programmers????
    Or is it a fake topic to ask???

  • How can I convert the volume directory into a single file installer?

    How can I convert the volume directory into a single file installer? I would like to hide all the miscillaneous files that I don't care for and be able to have the installer double click a single file and have it automatically install.

    On the second prompt screen when prompted 'What kind of self-extracting Zip file file do you want to make?'
    Are you choosing the second option (self-extracting Zip file for software installation)?
    I have a word file that I created to help me remember - is there anyway to email it to you?

  • Why can't I open the filter gallery in Photoshop CC 2014? I've converted the photo layer into a smart object, but the filter gallery selection is still grayed out.

    Why can't I open the filter gallery in Photoshop CC 2014? I've converted the photo layer into a smart object, but the filter gallery selection is still grayed out. How do I make it active?

    Please go to Help, System Info and Copy then paste here.
    Benjamin

  • Converting the WAD applications into PDF format

    Hi SAPians,
    I'm in need to convert WAD results into PDF Format using SAP BW 3.5 and Acrobat Reader 7.0. And I've referred some documents in Net, But,they gave ideas only for 3.5 and Acorobat 5 version.
    But i've to convert the WAD results into PDF format only by using Acrobat Reader 7.0. So, kindly let me know the steps to do so.
    Thanks in Advance.
    Jayaprakash J

    Hi Shahid syed,
    Thanks for your reply.
    It was very useful.
    But, i've askd the solution for sap bw 3.5 with Acrobat reader 7.0.
    So, plz let me knw if any solutions for that to make wad reports into pdf format.
    Points will be awarded.
    Thanks & Regards
    Jayaprakash J

  • How to notify() the main method in the given code snippet

    consider the given code snippet
    code
    public class WaitTest {
    public static void main(String [] args) {
    System.out.print("1 ") ;
    synchronized(args) {
    System.out.print("2 " ) ;
    try {
    args.wait();
    catch(InterruptedException e){}
    System.out.print("3 ");
    code
    Here since there are no threads to notify the main()method the statement System.out.print("3 "); never gets executed.And i cannot use the non static notify() from a static context.In this case how will I notify the main() method.

    A thread can only do one thing at a time.
    It cannot be waiting and notifying at the same time.
    notify only works if another thread is waiting.
    wait() only stops if another thread notify/notifyAll() it at the same time.

  • Getting Compilation error in the given code,

    Hello:
    If i use setResizable(false), then maximization option will be disabled,but i want to do close and minimization option will be disabled, then what methods shall i use? Although you have given setClosable(false) and setIconifiable(false), but both methods are not working properly, plz set the methods in the given code or plz give the proper code what i need to use.
    I shall be highly grateful to you, if you kindly help me.
    import java.awt.*;
    import javax.swing.*;
    public class Test{
              public static void main(String args[]){
                   SampleFrame frame = new SampleFrame();
                        frame.setDefaultCloseOperation(3);
                        frame.setVisible(true);
    class SampleFrame extends JFrame{
              public SampleFrame(){
                   setSize(width,height);
                   setResizable(false);
                   setClosable(false); // getting error
                   setIconifiable(false); // getting error
    public static final int width = 300;
    public static final int height = 200;
    }

    I'd post the simple answer, but the reply button never seems to work on your posts.

  • Convert the oracle10g database into standby ( read only mode)

    One month ago, converted the oracle 10g standby database into read and write mode( database is open). I would like to convert the oracle10g database into standby
    Please provide me the steps or document
    Thanks in advance

    user8680248 wrote:
    two months ago we have convert the standyby database into standard database ( read, write)
    NoW I am plannning to convert this database into standby database
    any link or steps pleaseDid you meant you would creating(or you have) another standby database and make that standby database as primary and this as standby
    If this is not what you meant then there is no way you can make this as sandby database.
    Regards
    Anurag

  • I have a 27" iMac with a broken hard drive. Is there a way to convert the existing hardware into a display monitor without too much technical work?

    I have a 27" iMac with a broken hard drive. Is there a way to convert the existing hardware into a display monitor without too much technical work?

    You don't state what iMac it is or what you want to use it for an external display with so we cannot answer the question. But without a bootable drive, no you cannot. However you can get the internal HD replaced or you can connect an external HD and boot from it. Without some basics about the computer it's impossible question to answer. However you may find what need in Apple's Target Display Mode: Frequently Asked Questions (FAQ)

  • Directly convert the analog signals into digital without passing through FPGA

    To whom it may concern,
    I am using a SCB-68 board R-series and I have a couple of technical questions:
    In my system at the moment 8 analog channels are connected to the 8 input analog ports and then data are sent to a FPGA (PXI system 7852R). I am planning now to add other 4 channels to the system. Since over the total 12 channels I just need a very fast acquisition mode (using the FPGA) for 6 of them, while the other 6 can be sampled in a ms scale, I was wondering if you can suggest me something that I can use to directly convert the analog signals into digital and in this way used many unused digital signals provided with this model.
    Thanks in advance.

    yes it is correct, what do you need is:
    software + (pc) + PXI + cable + chassis + C-series module
    With embedded controllers, there’s no need for an external PC
    With PXI remote control kits, you can control PXI systems directly from desktops, laptops, or server computers.
     What Is PXI?
    To configure a complete PXI System please go to: Build Your PXI System

  • Convert the signed message into base64 code in file receiver adapter

    Hi,
    I have 2 sequence steps in my scenario.
    Step1
    I want to convert the message with signed certifcates and send the file with  base 64 code format.
    Solu:
    1.I deployed the certificate in file adapter (The corresponding key/certificate pair must previously be saved in a keystore view of the J2EE server by using the Visual Administrator)
    2.for to change the File type content to base 64 code format .
    solu:
    File type in receiver communication channel is Binary.
    please suggest what value i need  to provide below
    anonymizer.encoding = ?(using the XMLAnonymizerBean in the module tab giving the value
    Step2.
    after that i wantt to pick up the file with base 64 code format (Which was created in step 1) and place the content to field with xsd type base64 Binary .
    for this we can pick up using file adapte or we need to use any module in the sender file module tab of the communication channel?
    Please suggest.

    HI Hyma,
    As Stefan specifyed already as per my knowledge we dont have any standard procedure for all the requirements you specified.....we need to go for module in the adapter.
    Cheers!!!
    Naveen.

  • How to convert the TEXT file into an XML using plsql code

    Hi all ,
    I need to convert an TEXT file into an XML file how can i do it
    Below is my sample TEXT file .
    TDETL00000000020000000000000120131021115854ST2225SKU77598059          0023-000000010000
    I want the above to be converted into the below format
    <?xml version="1.0" encoding="UTF-8"?>
    <txt2xml>
      <!-- Processor splits text into lines -->
      <processor type="RegexDelimited">
      <regex>\n</regex>
            <!--
            This is used to specify that a message should be created per line in
            the incoming file;
            NOTE: this was designed to work with all the processors, however it
            only works correctly with 'RegexDelimited' processors (check the
            enclosing top processor type)
             -->
             <maxIterationsPerMsg>1</maxIterationsPerMsg>
      <!-- For lines beginning with FHEAD (File Header) -->
      <processor type="RegexMatch">
      <element>FHEAD</element>
      <regex>^FHEAD(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,Type,Date</element>
      <regex>^(\d{10})(\w{4})(\d{14})$</regex>
      </processor>
      </processor>
      <!-- For lines beginning with TDETL (Transaction Details) -->
      <processor type="RegexMatch">
      <element>TDETL</element>
      <regex>^TDETL(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,TransControlNumber,TransDate,LocationType,Location,ItemType,Item,UPCSupplement,InventoryStatus,AdjustReason,AdjustSign,AdjustQty</element>
      <regex>^(\d{10})(\d{14})(\d{14})(\w{2})(\d{4})(\w{3})([\w ]{13})([\w ]{5})(\d{2})(\d{2})([+-]{1})(\d{12})$</regex>
      </processor>
      </processor>
      <!-- For lines beginning with FTAIL (File Tail) -->
      <processor type="RegexMatch">
      <element>FTAIL</element>
      <regex>^FTAIL(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,TransCount</element>
      <regex>^(\d{10})(\d{6})$</regex>
      </processor>
      </processor>
      </processor>
    </txt2xml>
    Thanks

    Sorry, that doesn't make much sense.
    The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
    Are you a user of this utility?

Maybe you are looking for

  • Java Applets and Java Sound

    I have an applet that displays buttons on panel and after doing all this it has to play a sound file. I have made sure that only after the methods that display the buttons (like creating panel, adding buttons to that panel etc.) i am calling the meth

  • Reading information of Backend - Purchase Order

    Hello, We use SRM 5.0 - Clasic escenario I have a question regarding Confirmation of Purchase orders in SRM. I understand that in table BBP_PDBEI the number of te Purchase order (and its position) is stored wth which SRM goes to the R/3 Backend to re

  • Create an object instance without calling its constructor?

    Hi, Sometimes it's useful to create object instances without calling their constructor. When? For example object deserialization. By default when deserializating an object, the instance in the VM is created by calling the default constructor of the f

  • How-To Application Acknowledgment SAP - XI -Legacy

    Hi there, I need to implement in XI an interface which receive goods receipt records (in a batch file) from legacy, these records are then mapped into (ToBeDecided interface - Choices are Idoc or ABAP proxy) and sent to SAP. So far very straight forw

  • SMTP Send Timeout

    Is it possible to configure a send timeout for outgoing SMTP messages, so that SAP regards the send order as failed if the timeout expires before the remote server accepts the data with "250 OK" ? I test with a MiniSap 710 system. It seems that when