bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public boolean compareTabOrder(Component component1, Component component2) { return false; // TODO } // compareTabOrder()
|
public boolean compareTabOrder(Component component1, Component component2) { return false; // TODO } // compareTabOrder()
| 4,198
|
public void focusNextComponent(Component component) { // TODO } // focusNextComponent()
|
public void focusNextComponent(Component component) { // TODO } // focusNextComponent()
| 4,199
|
public void focusPreviousComponent(Component component) { // TODO } // focusPreviousComponent()
|
public void focusPreviousComponent(Component component) { // TODO } // focusPreviousComponent()
| 4,200
|
public Component getComponentAfter(Container container, Component component) { return null; // TODO } // getComponentAfter()
|
public Component getComponentAfter(Container container, Component component) { return null; // TODO } // getComponentAfter()
| 4,201
|
public Component getComponentBefore(Container container, Component component) { return null; // TODO } // getComponentBefore()
|
public Component getComponentBefore(Container container, Component component) { return null; // TODO } // getComponentBefore()
| 4,202
|
public Component getFirstComponent(Container container) { return null; // TODO } // getFirstComponent()
|
public Component getFirstComponent(Container container) { return null; // TODO } // getFirstComponent()
| 4,203
|
public Component getLastComponent(Container container) { return null; // TODO } // getLastComponent()
|
public Component getLastComponent(Container container) { return null; // TODO } // getLastComponent()
| 4,204
|
public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent()
|
public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent()
| 4,205
|
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); if (provider.isDeviceSupported(info)) return provider.getDevice(info); } while (deviceProviders.hasNext()); throw new IllegalArgumentException("MIDI device " + info + " not available."); }
|
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); if (provider.isDeviceSupported(info)) return provider.getDevice(info); } while (deviceProviders.hasNext()); throw new IllegalArgumentException("MIDI device " + info + " not available."); }
| 4,206
|
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); if (provider.isDeviceSupported(info)) return provider.getDevice(info); } while (deviceProviders.hasNext()); throw new IllegalArgumentException("MIDI device " + info + " not available."); }
|
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); if (provider.isDeviceSupported(info)) return provider.getDevice(info); } while (deviceProviders.hasNext()); throw new IllegalArgumentException("MIDI device " + info + " not available."); }
| 4,207
|
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); if (provider.isDeviceSupported(info)) return provider.getDevice(info); } while (deviceProviders.hasNext()); throw new IllegalArgumentException("MIDI device " + info + " not available."); }
|
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); if (provider.isDeviceSupported(info)) return provider.getDevice(info); } while (deviceProviders.hasNext()); throw new IllegalArgumentException("MIDI device " + info + " not available."); }
| 4,208
|
public static MidiDevice.Info[] getMidiDeviceInfo() { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); List infoList = new ArrayList(); while (deviceProviders.hasNext()) { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); MidiDevice.Info[] infos = provider.getDeviceInfo(); for (int i = infos.length; i > 0; ) infoList.add(infos[--i]); } return (MidiDevice.Info[]) infoList.toArray(new MidiDevice.Info[infoList.size()]); }
|
public static MidiDevice.Info[] getMidiDeviceInfo() { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); List infoList = new ArrayList(); while (deviceProviders.hasNext()) { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); MidiDevice.Info[] infos = provider.getDeviceInfo(); for (int i = infos.length; i > 0; ) infoList.add(infos[--i]); } return (MidiDevice.Info[]) infoList.toArray(new MidiDevice.Info[infoList.size()]); }
| 4,209
|
public static MidiDevice.Info[] getMidiDeviceInfo() { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); List infoList = new ArrayList(); while (deviceProviders.hasNext()) { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); MidiDevice.Info[] infos = provider.getDeviceInfo(); for (int i = infos.length; i > 0; ) infoList.add(infos[--i]); } return (MidiDevice.Info[]) infoList.toArray(new MidiDevice.Info[infoList.size()]); }
|
public static MidiDevice.Info[] getMidiDeviceInfo() { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); List infoList = new ArrayList(); while (deviceProviders.hasNext()) { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); MidiDevice.Info[] infos = provider.getDeviceInfo(); for (int i = infos.length; i > 0; ) infoList.add(infos[--i]); } return (MidiDevice.Info[]) infoList.toArray(new MidiDevice.Info[infoList.size()]); }
| 4,210
|
public static MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException { Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class); while (readers.hasNext()) { MidiFileReader sr = (MidiFileReader) readers.next(); MidiFileFormat sb = sr.getMidiFileFormat(stream); if (sb != null) return sb; } throw new InvalidMidiDataException("Cannot read MidiFileFormat from stream"); }
|
public static MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException { Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class); while (readers.hasNext()) { MidiFileReader sr = (MidiFileReader) readers.next(); MidiFileFormat sb = sr.getMidiFileFormat(stream); if (sb != null) return sb; } throw new InvalidMidiDataException("Can't read MidiFileFormat from stream"); }
| 4,211
|
public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupported(fileType, in)) return fw.write(in, fileType, out); } throw new IllegalArgumentException("File type " + fileType + " is not supported"); }
|
public static int write(Sequence in, int fileType, OutputStream out) throws IOException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupported(fileType, in)) return fw.write(in, fileType, out); } throw new IllegalArgumentException("File type " + fileType + " is not supported"); }
| 4,212
|
public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupported(fileType, in)) return fw.write(in, fileType, out); } throw new IllegalArgumentException("File type " + fileType + " is not supported"); }
|
public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupported(fileType, in)) return fw.write(in, fileType, out); } throw new IllegalArgumentException("File type " + fileType + " is not supported"); }
| 4,213
|
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
|
protected NIOSocket (SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
| 4,215
|
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
|
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
| 4,216
|
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a table using our custom table model spools = new JSortTable(stm); TableColumn column = null; for (int x = 0;x < stm.getColumnCount(); x++) { column = spools.getColumnModel().getColumn(x); column.setPreferredWidth(stm.getColumnPreferredSize(x)); } spools.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); // create our mouse listener on the table spools.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { spools_mouseClicked(e); } public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } }); spools.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(spools); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // setup the number of rows we should be working with spools.setPreferredScrollableViewportSize( new Dimension( spools.getPreferredScrollableViewportSize().width, spools.getFontMetrics(spools.getFont()).getHeight() * 8) ); scrollPane.getViewport().setBackground(spools.getBackground()); scrollPane.setBackground(spools.getBackground()); //Setup our selection model listener rowSM = spools.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); } }); rowSM.setSelectionMode(rowSM.SINGLE_SELECTION); this.getContentPane().add(scrollPane, BorderLayout.CENTER); status = new JLabel("0 " + LangTool.getString("spool.count")); status.setBorder(BorderFactory.createEtchedBorder()); this.getContentPane().add(status, BorderLayout.SOUTH); pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { // close the spool file list// if (splfList != null)// splfList.close(); // close the system connection if (system != null) system.disconnectAllServices(); setVisible(false); dispose(); } }); }
|
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a table using our custom table model spools = new JSortTable(stm); TableColumn column = null; for (int x = 0;x < stm.getColumnCount(); x++) { column = spools.getColumnModel().getColumn(x); column.setPreferredWidth(stm.getColumnPreferredSize(x)); } spools.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); // create our mouse listener on the table spools.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { spools_mouseClicked(e); } public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } }); spools.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(spools); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // setup the number of rows we should be working with spools.setPreferredScrollableViewportSize( new Dimension( spools.getPreferredScrollableViewportSize().width, spools.getFontMetrics(spools.getFont()).getHeight() * 8) ); scrollPane.getViewport().setBackground(spools.getBackground()); scrollPane.setBackground(spools.getBackground()); //Setup our selection model listener rowSM = spools.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); } }); rowSM.setSelectionMode(rowSM.SINGLE_SELECTION); this.getContentPane().add(scrollPane, BorderLayout.CENTER); status = new JLabel("0 " + LangTool.getString("spool.count")); status.setBorder(BorderFactory.createEtchedBorder()); this.getContentPane().add(status, BorderLayout.SOUTH); pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { // close the spool file list// if (splfList != null)// splfList.close(); // close the system connection if (system != null) system.disconnectAllServices(); setVisible(false); dispose(); } }); }
| 4,217
|
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a table using our custom table model spools = new JSortTable(stm); TableColumn column = null; for (int x = 0;x < stm.getColumnCount(); x++) { column = spools.getColumnModel().getColumn(x); column.setPreferredWidth(stm.getColumnPreferredSize(x)); } spools.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); // create our mouse listener on the table spools.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { spools_mouseClicked(e); } public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } }); spools.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(spools); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // setup the number of rows we should be working with spools.setPreferredScrollableViewportSize( new Dimension( spools.getPreferredScrollableViewportSize().width, spools.getFontMetrics(spools.getFont()).getHeight() * 8) ); scrollPane.getViewport().setBackground(spools.getBackground()); scrollPane.setBackground(spools.getBackground()); //Setup our selection model listener rowSM = spools.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); } }); rowSM.setSelectionMode(rowSM.SINGLE_SELECTION); this.getContentPane().add(scrollPane, BorderLayout.CENTER); status = new JLabel("0 " + LangTool.getString("spool.count")); status.setBorder(BorderFactory.createEtchedBorder()); this.getContentPane().add(status, BorderLayout.SOUTH); pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { // close the spool file list// if (splfList != null)// splfList.close(); // close the system connection if (system != null) system.disconnectAllServices(); setVisible(false); dispose(); } }); }
|
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a table using our custom table model spools = new JSortTable(stm); TableColumn column = null; for (int x = 0;x < stm.getColumnCount(); x++) { column = spools.getColumnModel().getColumn(x); column.setPreferredWidth(stm.getColumnPreferredSize(x)); } spools.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); // create our mouse listener on the table spools.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { spools_mouseClicked(e); } public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } }); spools.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(spools); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // setup the number of rows we should be working with spools.setPreferredScrollableViewportSize( new Dimension( spools.getPreferredScrollableViewportSize().width, spools.getFontMetrics(spools.getFont()).getHeight() * 8) ); scrollPane.getViewport().setBackground(spools.getBackground()); scrollPane.setBackground(spools.getBackground()); //Setup our selection model listener rowSM = spools.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); } }); rowSM.setSelectionMode(rowSM.SINGLE_SELECTION); this.getContentPane().add(scrollPane, BorderLayout.CENTER); status = new JLabel("0 " + LangTool.getString("spool.count")); status.setBorder(BorderFactory.createEtchedBorder()); this.getContentPane().add(status, BorderLayout.SOUTH); pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { // close the spool file list// if (splfList != null)// splfList.close(); // close the system connection if (system != null) system.disconnectAllServices(); setVisible(false); dispose(); } }); }
| 4,218
|
public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
|
public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); }
| 4,219
|
public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
|
public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); }
| 4,220
|
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure CurrentArray = CurrentStructure.addArray(newarray); setCurrentDatatypeObject(CurrentArray); return newarray; }
|
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure if (newarray != null) { String arrayId = newarray.getArrayId(); if ( arrayId != null) ArrayObj.put(arrayId, newarray); } setCurrentDatatypeObject(CurrentArray); return newarray; }
| 4,221
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); String thisString = new String(buf,offset,len); if ( readObj instanceof TaggedXMLDataIOStyle ) { // dont add this data unless it has more than just whitespace if (!IgnoreWhitespaceOnlyData || stringIsNotAllWhitespace(thisString) ) { Log.debugln("ADDING TAGGED DATA to ("+TaggedLocatorObj+") : ["+thisString+"]"); DataTagLevel = CurrentDataTagLevel; DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. addDataToCurrentArray(TaggedLocatorObj, thisString, CurrentDataFormat); } } else if ( readObj instanceof DelimitedXMLDataIOStyle || readObj instanceof FormattedXMLDataIOStyle ) { // add it to the datablock if it isnt all whitespace ?? if (!IgnoreWhitespaceOnlyData || stringIsNotAllWhitespace(thisString) ) DATABLOCK.append(thisString); } else { Log.errorln("UNSUPPORTED Data Node CharData style:"+readObj.toString()+", Aborting!\n"); System.exit(-1); } }
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); String thisString = new String(buf,offset,len); if ( readObj instanceof TaggedXMLDataIOStyle ) { // dont add this data unless it has more than just whitespace if (!IgnoreWhitespaceOnlyData || stringIsNotAllWhitespace(thisString) ) { Log.debugln("ADDING TAGGED DATA to ("+TaggedLocatorObj+") : ["+thisString+"]"); DataTagLevel = CurrentDataTagLevel; DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. addDataToCurrentArray(TaggedLocatorObj, thisString, CurrentDataFormat, IntRadix[CurrentDataFormatIndex]); } } else if ( readObj instanceof DelimitedXMLDataIOStyle || readObj instanceof FormattedXMLDataIOStyle ) { // add it to the datablock if it isnt all whitespace ?? if (!IgnoreWhitespaceOnlyData || stringIsNotAllWhitespace(thisString) ) DATABLOCK.append(thisString); } else { Log.errorln("UNSUPPORTED Data Node CharData style:"+readObj.toString()+", Aborting!\n"); System.exit(-1); } }
| 4,223
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by oneDataNodeLevel--;//we might still be nested within a data node// if so, return now to accumulate more data within the DATABLOCKif(DataNodeLevel != 0) return;// now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK// Note: unfortunately we are reduced to using regex style matching// instead of a buffer read in formatted reads. Come back and// improve this later if possible.XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle();if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) {// determine the size of the dataFormat (s) in our dataCubeif (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1);} else { // its homogeneousMaxDataFormatIndex = 0;}Locator myLocator = CurrentArray.createLocator();myLocator.setIterationOrder(AxisReadOrder);// CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;//boolean dataHasSpecialIntegers = false;// set up appropriate instructions for readingif ( formatObj instanceof FormattedXMLDataIOStyle ) {/*$template= $formatObj->_templateNotation(1);$recordSize = $formatObj->bytes();$data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj)); if (strValueList.size() == 0) {Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?");System.exit(-1); }} else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator());}// fire data into dataCubeIterator iter = strValueList.iterator();while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) {int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis);if ( currentFastAxisCoordinate != LastFastAxisCoordinate ){ LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex)CurrentDataFormatIndex = 0; elseCurrentDataFormatIndex++;} } myLocator.next();}} else if ( formatObj instanceof TaggedXMLDataIOStyle ){// Tagged case: do nothing} else {Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!");System.exit(-1);} }
| 4,224
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
| 4,225
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat, IntRadix[CurrentDataFormatIndex]); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
| 4,226
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
|
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); myLocator.setIterationOrder(AxisReadOrder); // CurrentIOCmdIndex = 0; CurrentDataFormatIndex = 0; ArrayList strValueList;// boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ // snag the string representation of the values strValueList = formattedSplitStringIntoStringObjects( DATABLOCK.toString(), ((FormattedXMLDataIOStyle) formatObj) ); if (strValueList.size() == 0) { Log.errorln("Error: XDF Reader is unable to acquire formatted data, bad format?"); System.exit(-1); } } else { // snag the string representation of the values strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); } // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. String thisData = (String) iter.next(); addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisIndex(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
| 4,227
|
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } CurrentDataTagLevel--; }
|
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } CurrentDataTagLevel--; }
| 4,229
|
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amount+" bytes of data to current array"); while (bytes_added < amount) { FormattedIOCmd currentIOCmd = (FormattedIOCmd) commandList.get(CurrentIOCmdIndex); // readCell if (currentIOCmd instanceof ReadCellFormattedIOCmd) { DataFormat currentDataFormat = DataFormatList[CurrentDataFormatIndex]; int bytes_to_add = currentDataFormat.numOfBytes();Log.errorln("Adding "+bytes_to_add+" bytes of data to current array");//Object objectToAdd = null; if ( currentDataFormat instanceof IntegerDataFormat) { } else if (currentDataFormat instanceof FloatDataFormat) {Log.errorln("Got Href Data Float:["+new String(data,bytes_added,bytes_added+bytes_to_add)+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof BinaryFloatDataFormat) { if (bytes_to_add == 4) { Float myValue = convert4bytesToFloat(endian, data, bytes_added);Log.errorln("Got Href Data BFloatSingle:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else if (bytes_to_add == 8) { Double myValue = convert8bytesToDouble(endian, data, bytes_added);Log.errorln("Got Href Data BFloatDouble:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else { Log.errorln("Error: got floating point with bit size != (32|64). Ignoring data."); } } else if (currentDataFormat instanceof BinaryIntegerDataFormat) { Integer myValue = convert2bytesToInteger (endian, data, bytes_added);Log.errorln("Got Href Data Integer:["+myValue.toString()+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof StringDataFormat) {// char[] charList = bytesTo8BitChars(data,bytes_added,bytes_added+bytes_to_add);Log.errorln("String byte range is :"+bytes_added+" to "+(bytes_added+bytes_to_add));Log.errorln("Got Href Data String:["+new String(data,bytes_added,(bytes_added+bytes_to_add))+ "]["+bytes_added+"]["+bytes_to_add+"]"); } // advance our global pointer to the current DataFormat if (nrofDataFormat > 1) if (CurrentDataFormatIndex == (nrofDataFormat - 1)) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; bytes_added += bytes_to_add; } else if (currentIOCmd instanceof SkipCharFormattedIOCmd) { Integer bytes_to_skip = ((SkipCharFormattedIOCmd) currentIOCmd).getCount(); bytes_added += bytes_to_skip.intValue(); } else if (currentIOCmd instanceof RepeatFormattedIOCmd) { // shouldnt happen Log.errorln("Argh getCommands not working right, got repeat command in addByteData!!!"); System.exit(-1); } // advance our global pointer to the current IOCmd if (nrofIOCmd> 1) if (CurrentIOCmdIndex == (nrofIOCmd - 1)) CurrentIOCmdIndex = 0; else CurrentIOCmdIndex++; } }
|
private void addByteDataToCurrentArray (byte[] data, int amount, String endian) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amount+" bytes of data to current array"); while (bytes_added < amount) { FormattedIOCmd currentIOCmd = (FormattedIOCmd) commandList.get(CurrentIOCmdIndex); // readCell if (currentIOCmd instanceof ReadCellFormattedIOCmd) { DataFormat currentDataFormat = DataFormatList[CurrentDataFormatIndex]; int bytes_to_add = currentDataFormat.numOfBytes();Log.errorln("Adding "+bytes_to_add+" bytes of data to current array");//Object objectToAdd = null; if ( currentDataFormat instanceof IntegerDataFormat) { } else if (currentDataFormat instanceof FloatDataFormat) {Log.errorln("Got Href Data Float:["+new String(data,bytes_added,bytes_added+bytes_to_add)+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof BinaryFloatDataFormat) { if (bytes_to_add == 4) { Float myValue = convert4bytesToFloat(endian, data, bytes_added);Log.errorln("Got Href Data BFloatSingle:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else if (bytes_to_add == 8) { Double myValue = convert8bytesToDouble(endian, data, bytes_added);Log.errorln("Got Href Data BFloatDouble:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else { Log.errorln("Error: got floating point with bit size != (32|64). Ignoring data."); } } else if (currentDataFormat instanceof BinaryIntegerDataFormat) { Integer myValue = convert2bytesToInteger (endian, data, bytes_added);Log.errorln("Got Href Data Integer:["+myValue.toString()+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof StringDataFormat) {// char[] charList = bytesTo8BitChars(data,bytes_added,bytes_added+bytes_to_add);Log.errorln("String byte range is :"+bytes_added+" to "+(bytes_added+bytes_to_add));Log.errorln("Got Href Data String:["+new String(data,bytes_added,(bytes_added+bytes_to_add))+ "]["+bytes_added+"]["+bytes_to_add+"]"); } // advance our global pointer to the current DataFormat if (nrofDataFormat > 1) if (CurrentDataFormatIndex == (nrofDataFormat - 1)) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; bytes_added += bytes_to_add; } else if (currentIOCmd instanceof SkipCharFormattedIOCmd) { Integer bytes_to_skip = ((SkipCharFormattedIOCmd) currentIOCmd).getCount(); bytes_added += bytes_to_skip.intValue(); } else if (currentIOCmd instanceof RepeatFormattedIOCmd) { // shouldnt happen Log.errorln("Argh getCommands not working right, got repeat command in addByteData!!!"); System.exit(-1); } // advance our global pointer to the current IOCmd if (nrofIOCmd> 1) if (CurrentIOCmdIndex == (nrofIOCmd - 1)) CurrentIOCmdIndex = 0; else CurrentIOCmdIndex++; } }
| 4,230
|
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amount+" bytes of data to current array"); while (bytes_added < amount) { FormattedIOCmd currentIOCmd = (FormattedIOCmd) commandList.get(CurrentIOCmdIndex); // readCell if (currentIOCmd instanceof ReadCellFormattedIOCmd) { DataFormat currentDataFormat = DataFormatList[CurrentDataFormatIndex]; int bytes_to_add = currentDataFormat.numOfBytes();Log.errorln("Adding "+bytes_to_add+" bytes of data to current array");//Object objectToAdd = null; if ( currentDataFormat instanceof IntegerDataFormat) { } else if (currentDataFormat instanceof FloatDataFormat) {Log.errorln("Got Href Data Float:["+new String(data,bytes_added,bytes_added+bytes_to_add)+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof BinaryFloatDataFormat) { if (bytes_to_add == 4) { Float myValue = convert4bytesToFloat(endian, data, bytes_added);Log.errorln("Got Href Data BFloatSingle:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else if (bytes_to_add == 8) { Double myValue = convert8bytesToDouble(endian, data, bytes_added);Log.errorln("Got Href Data BFloatDouble:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else { Log.errorln("Error: got floating point with bit size != (32|64). Ignoring data."); } } else if (currentDataFormat instanceof BinaryIntegerDataFormat) { Integer myValue = convert2bytesToInteger (endian, data, bytes_added);Log.errorln("Got Href Data Integer:["+myValue.toString()+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof StringDataFormat) {// char[] charList = bytesTo8BitChars(data,bytes_added,bytes_added+bytes_to_add);Log.errorln("String byte range is :"+bytes_added+" to "+(bytes_added+bytes_to_add));Log.errorln("Got Href Data String:["+new String(data,bytes_added,(bytes_added+bytes_to_add))+ "]["+bytes_added+"]["+bytes_to_add+"]"); } // advance our global pointer to the current DataFormat if (nrofDataFormat > 1) if (CurrentDataFormatIndex == (nrofDataFormat - 1)) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; bytes_added += bytes_to_add; } else if (currentIOCmd instanceof SkipCharFormattedIOCmd) { Integer bytes_to_skip = ((SkipCharFormattedIOCmd) currentIOCmd).getCount(); bytes_added += bytes_to_skip.intValue(); } else if (currentIOCmd instanceof RepeatFormattedIOCmd) { // shouldnt happen Log.errorln("Argh getCommands not working right, got repeat command in addByteData!!!"); System.exit(-1); } // advance our global pointer to the current IOCmd if (nrofIOCmd> 1) if (CurrentIOCmdIndex == (nrofIOCmd - 1)) CurrentIOCmdIndex = 0; else CurrentIOCmdIndex++; } }
|
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amount+" bytes of data to current array"); while (bytes_added < amount) { FormattedIOCmd currentIOCmd = (FormattedIOCmd) commandList.get(CurrentIOCmdIndex); // readCell if (currentIOCmd instanceof ReadCellFormattedIOCmd) { DataFormat currentDataFormat = DataFormatList[CurrentDataFormatIndex]; int bytes_to_add = currentDataFormat.numOfBytes();Log.errorln("Adding "+bytes_to_add+" bytes of data to current array");//Object objectToAdd = null; if ( currentDataFormat instanceof IntegerDataFormat) { } else if (currentDataFormat instanceof FloatDataFormat) {Log.errorln("Got Href Data Float:["+new String(data,bytes_added,bytes_added+bytes_to_add)+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof BinaryFloatDataFormat) { if (bytes_to_add == 4) { Float myValue = convert4bytesToFloat(endian, data, bytes_added);Log.errorln("Got Href Data BFloatSingle:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else if (bytes_to_add == 8) { Double myValue = convert8bytesToDouble(endian, data, bytes_added);Log.errorln("Got Href Data BFloatDouble:["+myValue.toString()+"]["+bytes_added+"]["+bytes_to_add+"]"); } else { Log.errorln("Error: got floating point with bit size != (32|64). Ignoring data."); } } else if (currentDataFormat instanceof BinaryIntegerDataFormat) { Integer myValue = convert2bytesToInteger (endian, data, bytes_added);Log.errorln("Got Href Data Integer:["+myValue.toString()+ "]["+bytes_added+"]["+bytes_to_add+"]"); } else if (currentDataFormat instanceof StringDataFormat) {// char[] charList = bytesTo8BitChars(data,bytes_added,bytes_added+bytes_to_add);Log.errorln("String byte range is :"+bytes_added+" to "+(bytes_added+bytes_to_add));Log.errorln("Got Href Data String:["+new String(data,bytes_added,(bytes_added+bytes_to_add))+ "]["+bytes_added+"]["+bytes_to_add+"]"); } // advance our global pointer to the current DataFormat if (nrofDataFormat > 1) if (CurrentDataFormatIndex == (nrofDataFormat - 1)) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; bytes_added += bytes_to_add; } else if (currentIOCmd instanceof SkipCharFormattedIOCmd) { Integer bytes_to_skip = ((SkipCharFormattedIOCmd) currentIOCmd).getCount(); bytes_added += bytes_to_skip.intValue(); } else if (currentIOCmd instanceof RepeatFormattedIOCmd) { // shouldnt happen Log.errorln("Argh getCommands not working right, got repeat command in addByteData!!!"); System.exit(-1); } // advance our global pointer to the current IOCmd if (nrofIOCmd> 1) if (CurrentIOCmdIndex == (nrofIOCmd - 1)) CurrentIOCmdIndex = 0; else CurrentIOCmdIndex++; } }
| 4,231
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
| 4,232
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
|
privatevoidaddDataToCurrentArray(LocatordataLocator,StringthisString,DataFormatCurrentDataFormat){//Log.error("addDatatoArray:["+thisString+"]");//Notethatwedonttreatbinarydataatallheretry{if(CurrentDataFormatinstanceofStringDataFormat){//Log.errorln("StringDataFormat");CurrentArray.setData(dataLocator,thisString);}elseif(CurrentDataFormatinstanceofFloatDataFormat||CurrentDataFormatinstanceofBinaryFloatDataFormat){//Log.errorln("FloatDataFormat");Doublenumber=newDouble(thisString);CurrentArray.setData(dataLocator,number.doubleValue());}elseif(CurrentDataFormatinstanceofIntegerDataFormat||CurrentDataFormatinstanceofBinaryIntegerDataFormat){//Log.errorln("IntegerDataFormat");Integernumber=newInteger(thisString);CurrentArray.setData(dataLocator,number.intValue());}else{Log.warnln("Unknowndataformat,unabletosetData:["+thisString+"],ignoringrequest");}}catch(SetDataExceptione){//bizarreerror.Cantadddata(outofmemory??):PLog.errorln("UnabletosetData:["+thisString+"],ignoringrequest");Log.printStackTrace(e);}}
| 4,233
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
|
privatevoidaddDataToCurrentArray(LocatordataLocator,StringthisString,DataFormatCurrentDataFormat){//Log.error("addDatatoArray:["+thisString+"]");//Notethatwedonttreatbinarydataatallheretry{if(CurrentDataFormatinstanceofStringDataFormat){//Log.errorln("StringDataFormat");CurrentArray.setData(dataLocator,thisString);}elseif(CurrentDataFormatinstanceofFloatDataFormat||CurrentDataFormatinstanceofBinaryFloatDataFormat){//Log.errorln("FloatDataFormat");Doublenumber=newDouble(thisString);CurrentArray.setData(dataLocator,number.doubleValue());}elseif(CurrentDataFormatinstanceofIntegerDataFormat||CurrentDataFormatinstanceofBinaryIntegerDataFormat){//Log.errorln("IntegerDataFormat");Integernumber=newInteger(thisString);CurrentArray.setData(dataLocator,number.intValue());}else{Log.warnln("Unknowndataformat,unabletosetData:["+thisString+"],ignoringrequest");}}catch(SetDataExceptione){//bizarreerror.Cantadddata(outofmemory??):PLog.errorln("UnabletosetData:["+thisString+"],ignoringrequest");Log.printStackTrace(e);}}
| 4,234
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
|
privatevoidaddDataToCurrentArray(LocatordataLocator,StringthisString,DataFormatCurrentDataFormat){//Log.error("addDatatoArray:["+thisString+"]");//Notethatwedonttreatbinarydataatallheretry{if(CurrentDataFormatinstanceofStringDataFormat){//Log.errorln("StringDataFormat");CurrentArray.setData(dataLocator,thisString);}elseif(CurrentDataFormatinstanceofFloatDataFormat||CurrentDataFormatinstanceofBinaryFloatDataFormat){//Log.errorln("FloatDataFormat");Doublenumber=newDouble(thisString);CurrentArray.setData(dataLocator,number.doubleValue());}elseif(CurrentDataFormatinstanceofIntegerDataFormat||CurrentDataFormatinstanceofBinaryIntegerDataFormat){//Log.errorln("IntegerDataFormat");Integernumber=newInteger(thisString);CurrentArray.setData(dataLocator,number.intValue());}else{Log.warnln("Unknowndataformat,unabletosetData:["+thisString+"],ignoringrequest");}}catch(SetDataExceptione){//bizarreerror.Cantadddata(outofmemory??):PLog.errorln("UnabletosetData:["+thisString+"],ignoringrequest");Log.printStackTrace(e);}}
| 4,235
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
|
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat binary data at all here try { if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat"); CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FloatDataFormat || CurrentDataFormat instanceof BinaryFloatDataFormat) {// Log.errorln(" FloatDataFormat"); Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat || CurrentDataFormat instanceof BinaryIntegerDataFormat) {// Log.errorln(" IntegerDataFormat"); Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else { Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
| 4,236
|
private Integer convert2bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 8 | (bb[sbyte+1]&0xFF); else i = (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
|
private Integer convert2bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[sbyte]&0xFF) << 8 | (bb[sbyte+1]&0xFF); else i = (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
| 4,237
|
private Float convert4bytesToFloat (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0xFF) << 16 | (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF);/*Log.error("Float bits are: ");for (int j=sbyte; j<sbyte+4; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ return new Float(Float.intBitsToFloat(i)); }
|
private Float convert4bytesToFloat (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0xFF) << 16 | (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF);/*Log.error("Float bits are: ");for (int j=sbyte; j<sbyte+4; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ return new Float(Float.intBitsToFloat(i)); }
| 4,238
|
private Integer convert4bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0xFF) << 16 | (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
|
private Integer convert4bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0xFF) << 16 | (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
| 4,239
|
private Double convert8bytesToDouble (String endianStyle, byte[] bb, int sbyte) { int i1; int i2; if(endianStyle.equals("BigEndian")) { i1 = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); i2 = (bb[sbyte+4]&0xFF) << 24 | (bb[sbyte+5]&0xFF) << 16 | (bb[sbyte+6]&0xFF) << 8 | (bb[sbyte+7]&0xFF); } else { i2 = (bb[sbyte+7]&0xFF) << 24 | (bb[sbyte+6]&0xFF) << 16 | (bb[sbyte+5]&0xFF) << 8 | (bb[sbyte+4]&0xFF); i1 = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0xFF) << 16 | (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); } return new Double(Double.longBitsToDouble( ((long) i1) << 32 | ((long)i2&0x00000000ffffffffL) )); }
|
private Double convert8bytesToDouble (String endianStyle, byte[] bb, int sbyte) { int i1; int i2; if(endianStyle.equals(Constants.BIG_ENDIAN)) { i1 = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); i2 = (bb[sbyte+4]&0xFF) << 24 | (bb[sbyte+5]&0xFF) << 16 | (bb[sbyte+6]&0xFF) << 8 | (bb[sbyte+7]&0xFF); } else { i2 = (bb[sbyte+7]&0xFF) << 24 | (bb[sbyte+6]&0xFF) << 16 | (bb[sbyte+5]&0xFF) << 8 | (bb[sbyte+4]&0xFF); i1 = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0xFF) << 16 | (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); } return new Double(Double.longBitsToDouble( ((long) i1) << 32 | ((long)i2&0x00000000ffffffffL) )); }
| 4,240
|
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { int i; if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 2) { // 16 bit if(endianStyle.equals("BigEndian")) i = (bb[0]&0xFF) << 8 | (bb[1]&0xFF); else i = (bb[1]&0xFF) << 8 | (bb[0]&0xFF);/*Log.error("integer bits are: ");int sbyte = 0;for (int j=sbyte; j<sbyte+2; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ strDataRep = new Integer(i).toString(); } else if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit (long) if(endianStyle.equals("BigEndian")) i = (bb[0]&0xFF) << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = (bb[3]&0xFF) << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); strDataRep = new Integer(i).toString(); } else { Log.errorln("Cant treat binaryIntegers that arent either 16 or 32 bit. Ignoring value."); } } else if (binaryFormatObj instanceof BinaryFloatDataFormat) { int i; if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit float if(endianStyle.equals("BigEndian")) i = bb[0] << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = bb[3] << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); float myfloat = Float.intBitsToFloat(i); strDataRep = new Float(myfloat).toString(); } else if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 8) { // 64 bit float strDataRep = new String(""); } else { Log.warnln("Got Floating point number with neither 32 or 64 bits, ignoring."); strDataRep = new String(""); } } return strDataRep; }
|
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { int i; if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 2) { // 16 bit if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[0]&0xFF) << 8 | (bb[1]&0xFF); else i = (bb[1]&0xFF) << 8 | (bb[0]&0xFF);/*Log.error("integer bits are: ");int sbyte = 0;for (int j=sbyte; j<sbyte+2; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ strDataRep = new Integer(i).toString(); } else if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit (long) if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[0]&0xFF) << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = (bb[3]&0xFF) << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); strDataRep = new Integer(i).toString(); } else { Log.errorln("Cant treat binaryIntegers that arent either 16 or 32 bit. Ignoring value."); } } else if (binaryFormatObj instanceof BinaryFloatDataFormat) { int i; if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit float if(endianStyle.equals(Constants.BIG_ENDIAN)) i = bb[0] << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = bb[3] << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); float myfloat = Float.intBitsToFloat(i); strDataRep = new Float(myfloat).toString(); } else if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 8) { // 64 bit float strDataRep = new String(""); } else { Log.warnln("Got Floating point number with neither 32 or 64 bits, ignoring."); strDataRep = new String(""); } } return strDataRep; }
| 4,241
|
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { int i; if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 2) { // 16 bit if(endianStyle.equals("BigEndian")) i = (bb[0]&0xFF) << 8 | (bb[1]&0xFF); else i = (bb[1]&0xFF) << 8 | (bb[0]&0xFF);/*Log.error("integer bits are: ");int sbyte = 0;for (int j=sbyte; j<sbyte+2; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ strDataRep = new Integer(i).toString(); } else if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit (long) if(endianStyle.equals("BigEndian")) i = (bb[0]&0xFF) << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = (bb[3]&0xFF) << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); strDataRep = new Integer(i).toString(); } else { Log.errorln("Cant treat binaryIntegers that arent either 16 or 32 bit. Ignoring value."); } } else if (binaryFormatObj instanceof BinaryFloatDataFormat) { int i; if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit float if(endianStyle.equals("BigEndian")) i = bb[0] << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = bb[3] << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); float myfloat = Float.intBitsToFloat(i); strDataRep = new Float(myfloat).toString(); } else if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 8) { // 64 bit float strDataRep = new String(""); } else { Log.warnln("Got Floating point number with neither 32 or 64 bits, ignoring."); strDataRep = new String(""); } } return strDataRep; }
|
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { int i; if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 2) { // 16 bit if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[0]&0xFF) << 8 | (bb[1]&0xFF); else i = (bb[1]&0xFF) << 8 | (bb[0]&0xFF);/*Log.error("integer bits are: ");int sbyte = 0;for (int j=sbyte; j<sbyte+2; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ strDataRep = new Integer(i).toString(); } else if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit (long) if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[0]&0xFF) << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = (bb[3]&0xFF) << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); strDataRep = new Integer(i).toString(); } else { Log.errorln("Cant treat binaryIntegers that arent either 16 or 32 bit. Ignoring value."); } } else if (binaryFormatObj instanceof BinaryFloatDataFormat) { int i; if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit float if(endianStyle.equals(Constants.BIG_ENDIAN)) i = bb[0] << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = bb[3] << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); float myfloat = Float.intBitsToFloat(i); strDataRep = new Float(myfloat).toString(); } else if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 8) { // 64 bit float strDataRep = new String(""); } else { Log.warnln("Got Floating point number with neither 32 or 64 bits, ignoring."); strDataRep = new String(""); } } return strDataRep; }
| 4,242
|
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { int i; if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 2) { // 16 bit if(endianStyle.equals("BigEndian")) i = (bb[0]&0xFF) << 8 | (bb[1]&0xFF); else i = (bb[1]&0xFF) << 8 | (bb[0]&0xFF);/*Log.error("integer bits are: ");int sbyte = 0;for (int j=sbyte; j<sbyte+2; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ strDataRep = new Integer(i).toString(); } else if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit (long) if(endianStyle.equals("BigEndian")) i = (bb[0]&0xFF) << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = (bb[3]&0xFF) << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); strDataRep = new Integer(i).toString(); } else { Log.errorln("Cant treat binaryIntegers that arent either 16 or 32 bit. Ignoring value."); } } else if (binaryFormatObj instanceof BinaryFloatDataFormat) { int i; if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit float if(endianStyle.equals("BigEndian")) i = bb[0] << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = bb[3] << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); float myfloat = Float.intBitsToFloat(i); strDataRep = new Float(myfloat).toString(); } else if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 8) { // 64 bit float strDataRep = new String(""); } else { Log.warnln("Got Floating point number with neither 32 or 64 bits, ignoring."); strDataRep = new String(""); } } return strDataRep; }
|
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { int i; if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 2) { // 16 bit if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[0]&0xFF) << 8 | (bb[1]&0xFF); else i = (bb[1]&0xFF) << 8 | (bb[0]&0xFF);/*Log.error("integer bits are: ");int sbyte = 0;for (int j=sbyte; j<sbyte+2; j++) { for(int k=7; k >=0; k--) { int newvalue = (bb[j] >> k)&0x01; Log.error(""+newvalue); } Log.error(" ");}Log.errorln("");*/ strDataRep = new Integer(i).toString(); } else if(((BinaryIntegerDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit (long) if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[0]&0xFF) << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = (bb[3]&0xFF) << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); strDataRep = new Integer(i).toString(); } else { Log.errorln("Cant treat binaryIntegers that arent either 16 or 32 bit. Ignoring value."); } } else if (binaryFormatObj instanceof BinaryFloatDataFormat) { int i; if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 4) { // 32 bit float if(endianStyle.equals(Constants.BIG_ENDIAN)) i = bb[0] << 24 | (bb[1]&0xFF) << 16 | (bb[2]&0xFF) << 8 | (bb[3]&0xFF); else i = bb[3] << 24 | (bb[2]&0xFF) << 16 | (bb[1]&0xFF) << 8 | (bb[0]&0xFF); float myfloat = Float.intBitsToFloat(i); strDataRep = new Float(myfloat).toString(); } else if(((BinaryFloatDataFormat) binaryFormatObj).numOfBytes() == 8) { // 64 bit float strDataRep = new String(""); } else { Log.warnln("Got Floating point number with neither 32 or 64 bits, ignoring."); strDataRep = new String(""); } } return strDataRep; }
| 4,243
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
| 4,245
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
| 4,246
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian ); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
| 4,247
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
|
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() != null) { try { InputStream in = null; try { InputSource inputSource = resolveEntity(hrefObj.getPubId(), hrefObj.getSysId()); in = inputSource.getByteStream(); } catch (SAXException e) { Log.printStackTrace(e); } catch (NullPointerException e) { // in this case the InputSource object is null to request that // the parser open a regular URI connection to the system identifier. // In our case, the sysId IS the filename. File f = new File(hrefObj.getSysId()); in = (InputStream) new FileInputStream(new File(hrefObj.getSysId())); } // ok, got a bytestream, now read the info // Need to use a buffered reader here!!! if (in != null) { // probably could treat endian/nrofDataFormat as a globals too, since thats // how we treat the rest of the array parameters int nrofDataFormat = DataFormatList.length; String endian = CurrentArray.getXMLDataIOStyle().getEndian(); byte[] data = new byte[INPUTREADSIZE]; int bytes_read = 0; while ( true ) { int readAmount = in.read(data, bytes_read, INPUTREADSIZE-bytes_read); if ( readAmount == -1 ) { // pour out remaining buffer into the current array addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); break; // EOF reached } bytes_read += readAmount; // we exceeded the size of the buffer, dump to list if ( bytes_read == INPUTREADSIZE) { Log.errorln("Dumping buffer after reading in "+bytes_read+" bytes"); // pour out buffer into array addByteDataToCurrentArray(data, bytes_read, endian ); bytes_read = 0; } } } } catch (java.io.IOException e) { Log.printStackTrace(e); } } else { Log.warnln("Can't read Href data, undefined sysId!"); } }
| 4,248
|
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) largestItemSize = new Dimension(0, 0); for (int i = start - 1; i < end; i++) { Object item = model.getElementAt(i); Component comp = renderer.getListCellRendererComponent(new JList(), item, -1, false, false); if (comp.getPreferredSize().getWidth() > largestItemSize.getWidth()) largestItemSize = comp.getPreferredSize(); } }
|
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) largestItemSize = new Dimension(0, 0); for (int i = start; i < end; i++) { Object item = model.getElementAt(i); Component comp = renderer.getListCellRendererComponent(new JList(), item, -1, false, false); if (comp.getPreferredSize().getWidth() > largestItemSize.getWidth()) largestItemSize = comp.getPreferredSize(); } }
| 4,249
|
public SpinnerListModel() { List defaultList; /* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); }
|
public SpinnerListModel() { List defaultList; /* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); }
| 4,252
|
public SpinnerListModel() { List defaultList; /* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); }
|
public SpinnerListModel() { List defaultList; /* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); }
| 4,253
|
public List getList() { return list; }
|
public List getList() { return list; }
| 4,254
|
public Object getNextValue() { /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } }
|
public Object getNextValue() { /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } }
| 4,255
|
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
|
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
| 4,256
|
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
|
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
| 4,257
|
public Object getValue() { return list.get(index); }
|
public Object getValue() { return list.get(index); }
| 4,258
|
public void setList(List list) { /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /* Notify listeners of a change */ fireStateChanged(); } /* We reset the other values in either case */ /* Set the index to 0 */ index = 0; }
|
public void setList(List list) { /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /* Notify listeners of a change */ fireStateChanged(); } /* We reset the other values in either case */ /* Set the index to 0 */ index = 0; }
| 4,259
|
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the indices match */ index = valueIndex; /* Notify the listeners */ fireStateChanged(); }
|
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the indices match */ index = valueIndex; /* Notify the listeners */ fireStateChanged(); }
| 4,260
|
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the indices match */ index = valueIndex; /* Notify the listeners */ fireStateChanged(); }
|
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the indices match */ index = valueIndex; /* Notify the listeners */ fireStateChanged(); }
| 4,261
|
public Object clone() throws CloneNotSupportedException { if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); KeyPairGenerator result = new DummyKeyPairGenerator ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return result; }
|
public Object clone() throws CloneNotSupportedException { if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); KeyPairGenerator result = new DummyKeyPairGenerator ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return result; }
| 4,262
|
public MouseInputAdapter() { } // MouseInputAdapter()
|
public MouseInputAdapter() { } // MouseInputAdapter()
| 4,263
|
public void mouseEntered(MouseEvent event) { } // mouseEntered()
|
public void mouseEntered(MouseEvent event) { } // mouseEntered()
| 4,264
|
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.getSelectedValue(); else if (functions.getSelectedValue() instanceof Macro) { function = ((Macro)functions.getSelectedValue()).toString(); } else function = ((KeyDescription)functions.getSelectedValue()).toString(); kg.setText(LangTool.getString("key.labelMessage") + function); kgp.add(kg); String[] options = new String[1]; options[0] = LangTool.getString("key.labelClose"); JPanel kp = new JPanel(); JOptionPane opain = new JOptionPane(message, JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION, // option type null, options, options[0]); dialog = opain.createDialog(this, getTitle()); // add window listener to the dialog so that we can place focus on the // key getter label instead of default and set the new key value when // the window is closed. dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosed(WindowEvent we) { setNewKeyStrokes(kg.keyevent); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus to our KeyGetter // component if (!gotFocus) { kg.grabFocus(); gotFocus = true; } } }); dialog.setVisible(true); }
|
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.getSelectedValue(); else if (functions.getSelectedValue() instanceof Macro) { function = ((Macro)functions.getSelectedValue()).toString(); } else function = ((KeyDescription)functions.getSelectedValue()).toString(); kg.setText(LangTool.getString("key.labelMessage") + function); kgp.add(kg); String[] options = new String[1]; options[0] = LangTool.getString("key.labelClose"); JOptionPane opain = new JOptionPane(message, JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION, // option type null, options, options[0]); dialog = opain.createDialog(this, getTitle()); // add window listener to the dialog so that we can place focus on the // key getter label instead of default and set the new key value when // the window is closed. dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosed(WindowEvent we) { setNewKeyStrokes(kg.keyevent); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus to our KeyGetter // component if (!gotFocus) { kg.grabFocus(); gotFocus = true; } } }); dialog.setVisible(true); }
| 4,265
|
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "class", false); system = getBooleanAttribute(e, "system", false); autoStart = getBooleanAttribute(e, "auto-start", false); configClassName = getAttribute(e, "configuration-class", false); //if (registry != null) {// registry.registerPlugin(this); //} final ArrayList epList = new ArrayList(); final ArrayList exList = new ArrayList(); final ArrayList reqList = new ArrayList(); RuntimeModel runtime = null; for (Iterator ci = e.getChildren().iterator(); ci.hasNext();) { final XMLElement childE = (XMLElement) ci.next(); final String tag = childE.getName(); if (tag.equals("extension-point")) { final ExtensionPoint ep = new ExtensionPointModel(this, childE); epList.add(ep); //if (registry != null) {// registry.registerExtensionPoint(ep); //} } else if (tag.equals("requires")) { for (Iterator i = childE.getChildren().iterator(); i.hasNext();) { final XMLElement impE = (XMLElement) i.next(); if (impE.getName().equals("import")) { reqList.add(new PluginPrerequisiteModel(this, impE)); } else { throw new PluginException("Unknown element " + impE.getName()); } } } else if (tag.equals("extension")) { exList.add(new ExtensionModel(this, childE)); } else if (tag.equals("runtime")) { if (runtime == null) { runtime = new RuntimeModel(this, childE); } else { throw new PluginException("duplicate runtime element"); } } else { throw new PluginException("Unknown element " + tag); } } if (!epList.isEmpty()) { extensionPoints = (ExtensionPointModel[]) epList.toArray(new ExtensionPointModel[epList.size()]); } else { extensionPoints = new ExtensionPointModel[0]; } if (!reqList.isEmpty()) { requires = (PluginPrerequisiteModel[]) reqList.toArray(new PluginPrerequisiteModel[reqList.size()]); } else { requires = new PluginPrerequisiteModel[0]; } if (!exList.isEmpty()) { extensions = (ExtensionModel[]) exList.toArray(new ExtensionModel[exList.size()]); } else { extensions = new ExtensionModel[0]; } this.runtime = runtime; }
|
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "class", false); system = getBooleanAttribute(e, "system", false); autoStart = getBooleanAttribute(e, "auto-start", false); configClassName = getAttribute(e, "configuration-class", false); //if (registry != null) {// registry.registerPlugin(this); //} final ArrayList epList = new ArrayList(); final ArrayList exList = new ArrayList(); final ArrayList reqList = new ArrayList(); RuntimeModel runtime = null; for (Iterator ci = e.getChildren().iterator(); ci.hasNext();) { final XMLElement childE = (XMLElement) ci.next(); final String tag = childE.getName(); if (tag.equals("extension-point")) { final ExtensionPoint ep = new ExtensionPointModel(this, childE); epList.add(ep); //if (registry != null) {// registry.registerExtensionPoint(ep); //} } else if (tag.equals("requires")) { for (Iterator i = childE.getChildren().iterator(); i.hasNext();) { final XMLElement impE = (XMLElement) i.next(); if (impE.getName().equals("import")) { reqList.add(new PluginPrerequisiteModel(this, impE)); } else { throw new PluginException("Unknown element " + impE.getName()); } } } else if (tag.equals("extension")) { exList.add(new ExtensionModel(this, childE)); } else if (tag.equals("runtime")) { if (runtime == null) { runtime = new RuntimeModel(this, childE); } else { throw new PluginException("duplicate runtime element"); } } else { throw new PluginException("Unknown element " + tag); } } if (!epList.isEmpty()) { extensionPoints = (ExtensionPointModel[]) epList.toArray(new ExtensionPointModel[epList.size()]); } else { extensionPoints = new ExtensionPointModel[0]; } if (!reqList.isEmpty()) { requires = (PluginPrerequisiteModel[]) reqList.toArray(new PluginPrerequisiteModel[reqList.size()]); } else { requires = new PluginPrerequisiteModel[0]; } if (!exList.isEmpty()) { extensions = (ExtensionModel[]) exList.toArray(new ExtensionModel[exList.size()]); } else { extensions = new ExtensionModel[0]; } this.runtime = runtime; }
| 4,266
|
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = classXDFNodeName; // 1. open this node, print its simple XML attributes if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement //writeOut the body of DataFormat writeOut(outputstream, "<" + specificDataFormatName); // gather info about XMLAttributes in this object/node Hashtable xmlInfo = getXMLInfo(); // 2. Print out string object XML attributes EXCEPT for the one that // matches PCDATAAttribute. ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); synchronized(attribs) { int stop = attribs.size(); for (int i = 0; i < stop; i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " "+ item.get("name") + "=\"" + item.get("value") + "\""); } } //writeout end of the boby writeOut(outputstream, "/>"); //writeout closing node writeOut(outputstream, "</" + nodeNameString+ ">"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); }
|
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = classXDFNodeName; // 1. open this node, print its simple XML attributes if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement //writeOut the body of DataFormat writeOut(outputstream, "<" + specificDataFormatName); // gather info about XMLAttributes in this object/node Hashtable xmlInfo = getXMLInfo(); // 2. Print out string object XML attributes EXCEPT for the one that // matches PCDATAAttribute. ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); synchronized(attribs) { int stop = attribs.size(); for (int i = 0; i < stop; i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " "+ item.get("name") + "=\""); writeOutAttribute(outputstream, (String)item.get("value")); writeOut(outputstream, "\""); } } //writeout end of the boby writeOut(outputstream, "/>"); //writeout closing node writeOut(outputstream, "</" + nodeNameString+ ">"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); }
| 4,267
|
protected Page(String title, Icon icon, Component component, String tip) { this.title = title; this.icon = icon; this.component = component; this.tip = tip; }
|
protected Page(String title, Icon icon, Component component, String tip) { this.title = title; this.icon = icon; this.component = component; this.tip = tip; }
| 4,268
|
protected Page(String title, Icon icon, Component component, String tip) { this.title = title; this.icon = icon; this.component = component; this.tip = tip; }
|
protected Page(String title, Icon icon, Component component, String tip) { this.title = title; this.icon = icon; this.component = component; this.tip = tip; }
| 4,269
|
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || (index > -1 && title.charAt(index) != mnemonicKey)) index = -1; underlinedChar = index; }
|
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || (index > -1 && title.charAt(index) != mnemonicKey)) index = -1; underlinedChar = index; }
| 4,270
|
public void setTip(String tip) { this.tip = tip; }
|
public void setTip(String tip) { this.tip = tip; }
| 4,271
|
public void setTitle(String text) { title = text; if (title != null && title.length() <= underlinedChar) setDisplayedMnemonicIndex(title.length() - 1); }
|
public void setTitle(String text) { title = text; if (title != null && title.length() <= underlinedChar) setDisplayedMnemonicIndex(title.length() - 1); }
| 4,272
|
public int getTabRunCount() { return ((TabbedPaneUI) ui).getTabRunCount(this); }
|
public int getTabRunCount() { return ((TabbedPaneUI) ui).getTabRunCount(this); }
| 4,273
|
public int getTabRunCount() { return ((TabbedPaneUI) ui).getTabRunCount(this); }
|
public int getTabRunCount() { return ((TabbedPaneUI) ui).getTabRunCount(this); }
| 4,274
|
public String getToolTipTextAt(int index) { checkIndex(index, 0, tabs.size()); return ((Page) tabs.elementAt(index)).getTip(); }
|
public String getToolTipTextAt(int index) { checkIndex(index, 0, tabs.size()); return ((Page) tabs.elementAt(index)).getTip(); }
| 4,275
|
public void insertTab(String title, Icon icon, Component component, String tip, int index) { Page p = new Page(title, icon, component, tip); tabs.insertElementAt(p, index); // Hide the component so we don't see it. Do it before we parent it // so we don't trigger a repaint. if (component != null) { component.hide(); super.add(component); } if (getSelectedIndex() == -1) setSelectedIndex(0); layout(); repaint(); }
|
public void insertTab(String title, Icon icon, Component component, String tip, int index) { Page p = new Page(title, icon, component, tip); tabs.insertElementAt(p, index); // Hide the component so we don't see it. Do it before we parent it // so we don't trigger a repaint. if (component != null) { component.hide(); super.add(component); } if (getSelectedIndex() == -1) setSelectedIndex(0); layout(); repaint(); }
| 4,276
|
protected String paramString() { return "JTabbedPane"; }
|
protected String paramString() { return "JTabbedPane"; }
| 4,277
|
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); }
|
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); }
| 4,278
|
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); }
|
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); }
| 4,279
|
public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); }
|
public boolean requestFocusInWindow() { return super.requestFocusInWindow(temporary); }
| 4,281
|
public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); }
|
public boolean requestFocusInWindow(boolean temporary) { if (isRequestFocusEnabled()) return super.requestFocusInWindow(); else return false; }
| 4,282
|
public Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns ) { throw new NO_IMPLEMENT(); }
|
public Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns ) { if (orb instanceof OrbFunctional) { ((OrbFunctional) orb).ensureRunning(); } gnuRequest g = new gnuRequest(); g.setORB(orb); g.setOperation(operation); g.setIor(ior); g.m_target = target; g.ctx(context); g.set_args(parameters); if (returns != null) g.set_result(returns); return g; }
| 4,284
|
public boolean isCompletelyDirty(JComponent component) { if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; }
|
public boolean isCompletelyDirty(JComponent component) { if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; }
| 4,286
|
public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; }
|
public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } }
| 4,287
|
public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; }
|
public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; }
| 4,288
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
| 4,289
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
| 4,290
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintRoots.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
| 4,291
|
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
|
public void paintDirtyRegions(){// Short cicuit if there is nothing to paint.if (dirtyComponents.size() == 0)return;// Swap dirtyRegions with dirtyRegionsWork to avoid locking.synchronized (dirtyComponents){HashMap swap = dirtyComponents;dirtyComponents = dirtyComponentsWork;dirtyComponentsWork = swap;}ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());;// We sort the components by their size here. This way we have a good// chance that painting the bigger components also paints the smaller// components and we don't need to paint them twice.repaintOrder.addAll(dirtyComponentsWork.keySet());if (comparator == null)comparator = new ComponentComparator();Collections.sort(repaintOrder, comparator);repaintUnderway = true;for (Iterator i = repaintOrder.iterator(); i.hasNext();){JComponent comp = (JComponent) i.next();// If a component is marked completely clean in the meantime, then skip// it.Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp);if (damaged == null || damaged.isEmpty())continue;comp.paintImmediately(damaged);}repaintUnderway = false;commitRemainingBuffers();}
| 4,292
|
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.dispose(); }
|
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.dispose(); }
| 4,294
|
public Serializable extract_Value() throws BAD_OPERATION { /**@todo Implement this org.omg.CORBA.Any abstract method*/ throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented."); }
|
public Serializable extract_Value() throws BAD_OPERATION { /**@todo Implement this org.omg.CORBA.Any abstract method*/ throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented."); }
| 4,295
|
public void insert_Value(Serializable x, TypeCode typecode) { resetTypes(); /**@todo Implement this org.omg.CORBA.Any abstract method*/ }
|
public void insert_Value(Serializable x, TypeCode typecode) { resetTypes(); /**@todo Implement this org.omg.CORBA.Any abstract method*/ }
| 4,296
|
public BooleanHolder(boolean initial_value) { value = initial_value; }
|
public BooleanHolder() { value = initial_value; }
| 4,297
|
public BooleanHolder(boolean initial_value) { value = initial_value; }
|
public BooleanHolder(boolean initial_value) { }
| 4,298
|
public DoubleHolder(double initial_value) { value = initial_value; }
|
public DoubleHolder() { value = initial_value; }
| 4,299
|
public DoubleHolder(double initial_value) { value = initial_value; }
|
public DoubleHolder(double initial_value) { }
| 4,300
|
public FixedHolder(BigDecimal initial_value) { value = initial_value; }
|
public FixedHolder() { value = initial_value; }
| 4,301
|
public FixedHolder(BigDecimal initial_value) { value = initial_value; }
|
public FixedHolder(BigDecimal initial_value) { }
| 4,302
|
public FloatHolder(float initial_value) { value = initial_value; }
|
public FloatHolder() { value = initial_value; }
| 4,303
|
public FloatHolder(float initial_value) { value = initial_value; }
|
public FloatHolder(float initial_value) { }
| 4,304
|
public IntHolder(int initial_value) { value = initial_value; }
|
public IntHolder() { value = initial_value; }
| 4,305
|
public IntHolder(int initial_value) { value = initial_value; }
|
public IntHolder(int initial_value) { }
| 4,306
|
public LongHolder(long initial_value) { value = initial_value; }
|
public LongHolder() { value = initial_value; }
| 4,307
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.