bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Dimension getPreferredScrollableViewportSize() { return preferredScrollableViewportSize; }
public Dimension getPreferredScrollableViewportSize() { return preferredViewportSize; }
10,065
protected void initializeLocalVars() { this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEditorsByColumnClass = new Hashtable(); createDefaultEditors(); this.autoResizeMode = AUTO_RESIZE_ALL_COLUMNS; this.rowHeight = 16; this.rowMargin = 1; this.rowSelectionAllowed = true; // this.accessibleContext = new AccessibleJTable(); this.cellEditor = null; this.dragEnabled = false; this.preferredScrollableViewportSize = new Dimension(450,400); this.showHorizontalLines = true; this.showVerticalLines = true; this.editingColumn = -1; this.editingRow = -1; setIntercellSpacing(new Dimension(1,1)); setTableHeader(createDefaultTableHeader()); }
protected void initializeLocalVars() { this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEditorsByColumnClass = new Hashtable(); createDefaultEditors(); this.autoResizeMode = AUTO_RESIZE_ALL_COLUMNS; this.rowHeight = 16; this.rowMargin = 1; this.rowSelectionAllowed = true; // this.accessibleContext = new AccessibleJTable(); this.cellEditor = null; this.dragEnabled = false; this.preferredViewportSize = new Dimension(450,400); this.showHorizontalLines = true; this.showVerticalLines = true; this.editingColumn = -1; this.editingRow = -1; setIntercellSpacing(new Dimension(1,1)); setTableHeader(createDefaultTableHeader()); }
10,066
public void setPreferredScrollableViewportSize(Dimension p) { preferredScrollableViewportSize = p; revalidate(); repaint(); }
public void setPreferredScrollableViewportSize(Dimension p) { preferredViewportSize = p; revalidate(); repaint(); }
10,067
public void change(int offset, int length, DefaultDocumentEvent ev) { this.offset = offset; this.length = length; changeUpdate(); }
public void change(int offset, int length, DefaultDocumentEvent ev) { this.offset = offset; this.length = length; changeUpdate(); }
10,068
void split(Element el, int offset) { if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; int startOffset = ael.getStartOffset(); int endOffset = ael.getEndOffset(); int len = endOffset - startOffset; if (startOffset != offset && endOffset != offset) { Element paragraph = ael.getParentElement(); if (paragraph instanceof BranchElement) { BranchElement par = (BranchElement) paragraph; Element child1 = createLeafElement(par, ael, startOffset, offset); Element child2 = createLeafElement(par, ael, offset, endOffset); int index = par.getElementIndex(startOffset); par.replace(index, 1, new Element[]{ child1, child2 }); } else throw new AssertionError("paragraph elements are expected to " + "be instances of " + "javax.swing.text.AbstractDocument.BranchElement"); } } else throw new AssertionError("content elements are expected to be " + "instances of " + "javax.swing.text.AbstractDocument.AbstractElement"); }
void split(Element el, int offset) { if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; int startOffset = ael.getStartOffset(); int endOffset = ael.getEndOffset(); int len = endOffset - startOffset; if (startOffset != offset && endOffset != offset) { Element paragraph = ael.getParentElement(); if (paragraph instanceof BranchElement) { BranchElement par = (BranchElement) paragraph; Element child1 = createLeafElement(par, ael, startOffset, offset); Element child2 = createLeafElement(par, ael, offset, endOffset); int index = par.getElementIndex(startOffset); par.replace(index, 1, new Element[]{ child1, child2 }); } else throw new AssertionError("paragraph elements are expected to " + "be instances of " + "javax.swing.text.AbstractDocument.BranchElement"); } } else throw new AssertionError("content elements are expected to be " + "instances of " + "javax.swing.text.AbstractDocument.AbstractElement"); }
10,069
public Element getParagraphElement(int position) { Element element = getCharacterElement(position); return element.getParentElement(); }
public Element getParagraphElement(int position) { Element element = getCharacterElement(position); return element.getParentElement(); }
10,070
public int getFreeBlocksCount() { return Ext2Utils.get16(data, 12); }
public int getFreeBlocksCount() { return Ext2Utils.get16(data, 12); }
10,072
public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); }
public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); }
10,073
public int getUsedDirsCount() { return Ext2Utils.get16(data, 16); }
public int getUsedDirsCount() { return Ext2Utils.get16(data, 16); }
10,074
public void setFreeBlocksCount(int count) { Ext2Utils.set16(data, 12, count); setDirty(true); }
public void setFreeBlocksCount(int count) { Ext2Utils.set16(data, 12, count); setDirty(true); }
10,075
public void setFreeInodesCount(int count) { Ext2Utils.set16(data, 14, count); setDirty(true); }
public void setFreeInodesCount(int count) { Ext2Utils.set16(data, 14, count); setDirty(true); }
10,076
public void setUsedDirsCount(int count) { Ext2Utils.set16(data, 16, count); setDirty(true); }
public void setUsedDirsCount(int count) { Ext2Utils.set16(data, 16, count); setDirty(true); }
10,077
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); }
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); }
10,078
public void create(int blockSize) throws FileSystemException { try{ //create the superblock superblock = new Superblock(); superblock.create(blockSize, this); //create the group descriptors groupCount = (int)Math.ceil((double)superblock.getBlocksCount() / (double)superblock.getBlocksPerGroup()); groupDescriptors = new GroupDescriptor[groupCount]; for(int i=0; i<groupCount; i++) { groupDescriptors[i]=new GroupDescriptor(); groupDescriptors[i].create(i, this); } //create each block group: // create the block bitmap // create the inode bitmap // fill the inode table with zeroes for(int i=0; i<groupCount; i++) { log.debug("creating gropup "+i); byte[] blockBitmap = new byte[blockSize]; byte[] inodeBitmap = new byte[blockSize]; //update the block bitmap: mark the metadata blocks allocated long iNodeTableBlock = groupDescriptors[i].getInodeTable(); long firstNonMetadataBlock = iNodeTableBlock + INodeTable.getSizeInBlocks(this); int metadataLength = (int)(firstNonMetadataBlock - (superblock.getFirstDataBlock() + i*superblock.getBlocksPerGroup())); for(int j=0; j<metadataLength; j++) BlockBitmap.setBit(blockBitmap, j); //set the padding at the end of the last block group if(i == groupCount-1) { for(long k=superblock.getBlocksCount(); k<groupCount*superblock.getBlocksPerGroup(); k++) BlockBitmap.setBit(blockBitmap,(int) (k % superblock.getBlocksPerGroup())); } //update the inode bitmap: mark the special inodes allocated in the first block group if(i==0) for(int j=0; j<superblock.getFirstInode()-1; j++) INodeBitmap.setBit(inodeBitmap, j); //create an empty inode table byte[] emptyBlock = new byte[blockSize]; for(long j=iNodeTableBlock; j<firstNonMetadataBlock; j++) writeBlock(j, emptyBlock, false); writeBlock(groupDescriptors[i].getBlockBitmap(), blockBitmap, false); writeBlock(groupDescriptors[i].getInodeBitmap(), inodeBitmap, false); } log.info("superblock.getBlockSize(): "+superblock.getBlockSize()); //TODO: create the root inode createRootEntry(); //write everything to disk flush(); }catch (IOException ioe) { throw new FileSystemException("Unable to create filesystem", ioe); } }
publicvoidcreate(intblockSize)throwsFileSystemException{ try{ //createthesuperblock superblock=newSuperblock(); superblock.create(blockSize,this); //createthegroupdescriptors groupCount=(int)Math.ceil((double)superblock.getBlocksCount()/(double)superblock.getBlocksPerGroup()); groupDescriptors=newGroupDescriptor[groupCount]; for(inti=0;i<groupCount;i++){ groupDescriptors[i]=newGroupDescriptor(); groupDescriptors[i].create(i,this); } //createeachblockgroup: // createtheblockbitmap // createtheinodebitmap // filltheinodetablewithzeroes for(inti=0;i<groupCount;i++){ log.debug("creatinggropup"+i); byte[]blockBitmap=newbyte[blockSize]; byte[]inodeBitmap=newbyte[blockSize]; //updatetheblockbitmap:markthemetadatablocksallocated longiNodeTableBlock= groupDescriptors[i].getInodeTable(); longfirstNonMetadataBlock=iNodeTableBlock+INodeTable.getSizeInBlocks(this); intmetadataLength=(int)(firstNonMetadataBlock- (superblock.getFirstDataBlock()+i*superblock.getBlocksPerGroup())); for(intj=0;j<metadataLength;j++) BlockBitmap.setBit(blockBitmap,j); //setthepaddingattheendofthelastblockgroup if(i==groupCount-1){ for(longk=superblock.getBlocksCount();k<groupCount*superblock.getBlocksPerGroup();k++) BlockBitmap.setBit(blockBitmap,(int)(k%superblock.getBlocksPerGroup())); } //updatetheinodebitmap:markthespecialinodesallocatedinthefirstblockgroup if(i==0) for(intj=0;j<superblock.getFirstInode()-1;j++) INodeBitmap.setBit(inodeBitmap,j); //createanemptyinodetable byte[]emptyBlock=newbyte[blockSize]; for(longj=iNodeTableBlock;j<firstNonMetadataBlock;j++) writeBlock(j,emptyBlock,false); writeBlock(groupDescriptors[i].getBlockBitmap(),blockBitmap,false); writeBlock(groupDescriptors[i].getInodeBitmap(),inodeBitmap,false); } log.info("superblock.getBlockSize():"+superblock.getBlockSize()); //TODO:createtherootinode createRootEntry(); //writeeverythingtodisk flush(); }catch(IOExceptionioe){ thrownewFileSystemException("Unabletocreatefilesystem",ioe); } }
10,079
protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if(preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group "+preferredBlockBroup+"does not exist"); int groupNr = preferredBlockBroup; //first check the preferred block group, if it has any free inodes INodeReservation res = findFreeINode( groupNr ); //if no free inode has been found in the preferred block group, then try the others if(!res.isSuccessful()) { for(groupNr=0; groupNr<superblock.getBlockGroupNr(); groupNr++) { res = findFreeINode( groupNr ); if(res.isSuccessful()){ break; } } } if(!res.isSuccessful()) throw new FileSystemException("No free inodes found!"); //a free inode has been found: create the inode and write it into the inode table long iNodeTableBlock = groupDescriptors[preferredBlockBroup].getInodeTable(); //the first block of the inode table INodeTable iNodeTable = new INodeTable(this, (int)iNodeTableBlock); //byte[] iNodeData = new byte[INode.INODE_LENGTH]; int iNodeNr = res.getINodeNr((int)superblock.getINodesPerGroup()); INode iNode = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, groupNr, res.getIndex())); iNode.create( fileFormat, accessRights, uid, gid); //trigger a write to disk iNode.update(); log.debug("** NEW INODE ALLOCATED: inode number: "+iNode.getINodeNr()); //put the inode into the cache synchronized(inodeCache) { Integer key = new Integer(iNodeNr); if(inodeCache.containsKey(key)) throw new FileSystemException("Newly allocated inode is already in the inode cache!?"); else inodeCache.put(key, iNode); } return iNode; }
protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if(preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group "+preferredBlockBroup+"does not exist"); int groupNr = preferredBlockBroup; //first check the preferred block group, if it has any free inodes INodeReservation res = findFreeINode( groupNr ); //if no free inode has been found in the preferred block group, then try the others if(!res.isSuccessful()) { for(groupNr=0; groupNr<superblock.getBlockGroupNr(); groupNr++) { res = findFreeINode( groupNr ); if(res.isSuccessful()){ break; } } } if(!res.isSuccessful()) throw new FileSystemException("No free inodes found!"); //a free inode has been found: create the inode and write it into the inode table long iNodeTableBlock = groupDescriptors[preferredBlockBroup].getInodeTable(); //the first block of the inode table INodeTable iNodeTable = new INodeTable(this, (int)iNodeTableBlock); //byte[] iNodeData = new byte[INode.INODE_LENGTH]; int iNodeNr = res.getINodeNr((int)superblock.getINodesPerGroup()); INode iNode = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, groupNr, res.getIndex())); iNode.create( fileFormat, accessRights, uid, gid); //trigger a write to disk iNode.update(); log.debug("** NEW INODE ALLOCATED: inode number: "+iNode.getINodeNr()); //put the inode into the cache synchronized(inodeCache) { Integer key = new Integer(iNodeNr); if(inodeCache.containsKey(key)) throw new FileSystemException("Newly allocated inode is already in the inode cache!?"); else inodeCache.put(key, iNode); } return iNode; }
10,080
public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //check if the block has already been retrieved if(blockCache.containsKey(key)) result=(Block)blockCache.get(key); else{ byte[] data = new byte[blockSize]; getApi().read( nr*blockSize, data, 0, blockSize ); //timedRead(nr, data); result=new Block(this, nr, data); blockCache.put(key, result); } } return result.getData(); }
public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //check if the block has already been retrieved if(blockCache.containsKey(key)) result=(Block)blockCache.get(key); else{ byte[] data = new byte[blockSize]; getApi().read( nr*blockSize, data, 0, blockSize ); //timedRead(nr, data); result=new Block(this, nr, data); blockCache.put(key, result); } } return result.getData(); }
10,081
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } }
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } }
10,082
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } }
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } }
10,083
protected void modifyFreeInodesCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } }
protected void modifyFreeInodesCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } }
10,084
protected void modifyUsedDirsCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } }
protected void modifyUsedDirsCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } }
10,085
protected void updateFS() throws IOException { //updating one group descriptor updates all its copies for(int i=0; i<groupCount; i++) groupDescriptors[i].updateGroupDescriptors(); superblock.update(); }
protected void updateFS() throws IOException { //updating one group descriptor updates all its copies for(int i=0; i<groupCount; i++) groupDescriptors[i].updateGroupDescriptors(); superblock.update(); }
10,086
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) { super(subIndex); this.options = options; this.negative = negative; }
10,087
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); options = new Vector(); this.negative = negative; }
10,088
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
10,090
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
10,091
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
10,092
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("row"); axis.setAxisId("row_id"); FieldGroup fieldGroup = new FieldGroup(); fieldGroup.setName("fieldGroup"); fieldGroup.setDescription("fieldGroup description"); IntegerDataFormat dateFormat = new IntegerDataFormat(); dateFormat.setWidth(new Integer(32)); Field field1 = new Field (); field1.setName("field1"); field1.setDescription("field1-description"); field1.setFieldId ("field1-id"); field1.setDataFormat(dateFormat); Field field2 = new Field (); field2.setName("field2"); field2.setDescription("field2-description"); field2.setFieldId ("field2-id"); field2.setDataFormat(dateFormat); fieldGroup.addMemberObject(field1); fieldGroup.addMemberObject(field2); fieldAxis.addFieldGroup(fieldGroup); fieldAxis.addField(field1); fieldAxis.addField(field2); array.addAxis (axis); array.setFieldAxis (fieldAxis); Locator locator = array.createLocator(); Vector list = new Vector (); list.add(axis); list.add(fieldAxis); locator.setIterationOrder(list); for (int i=0; i<ROW; i++) { for (int j=0; j<COL; j++) { array.setData(locator,i+j); locator.next(); } } // the following 4 lines to declear the data will be written to // a seperate file, xdf_table; Entity href = new Entity(); href.setName("xdf_table"); href.setSystemId("xdf_table"); array.setHref(href); // the following 6 lines to set write out style: formatted style // otherwise, data will be in tagged format /* FormattedXMLDataIOStyle xmlIOStyle = new FormattedXMLDataIOStyle(array); List cmdList = new Vector(); ReadCellFormattedIOCmd readCell = new ReadCellFormattedIOCmd(); cmdList.add(readCell); xmlIOStyle.setFormatCommandList(cmdList); array.setXMLDataIOStyle(xmlIOStyle); */ structure.addArray(array); xdf.addStructure(structure); System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); Specification.getInstance().setPrettyXDFOutput(true); Specification.getInstance().setPrettyXDFOutputIndentation(" "); Writer wo = new OutputStreamWriter(System.out); xdf.toXMLWriter(wo); wo.flush(); wo.close(); }
10,093
public static void main(String[] args) throws Exception { CpCommand cpCommand = new CpCommand(args); int nbCopyedFile = cpCommand.copy(); System.out.println(nbCopyedFile + " file(s) copyed"); }
public static void main(String[] args) throws Exception { CpCommand cpCommand = new CpCommand(args); int nbCopyedFile = cpCommand.copy(); System.out.println(nbCopyedFile + " file(s) copied"); }
10,094
private void checkProperties(Properties props) { if (props == null) { return; } Enumeration names = props.propertyNames(); java.lang.Object key; String sk; while (names.hasMoreElements()) { key = names.nextElement(); if (key != null) { sk = key.toString(); if (sk.startsWith(m_prefix)) { try { String cn = sk.substring(m_prefix.length()); Class iClass = Class.forName(cn); ORBInitializer initializer = (ORBInitializer) iClass.newInstance(); m_initializers.add(initializer); } catch (Exception exc) { // OMG states we should not throw an exception, but // this will help the user to detect his error // in initialiser properties. Should never print during // normal run. System.err.println(sk + " failed"); } } } } }
private void checkProperties(Properties props) { if (props == null) { return; } Enumeration names = props.propertyNames(); java.lang.Object key; String sk; while (names.hasMoreElements()) { key = names.nextElement(); if (key != null) { sk = key.toString(); if (sk.startsWith(m_prefix)) { try { String cn = sk.substring(m_prefix.length()); Class iClass = ObjectCreator.forName(cn); ORBInitializer initializer = (ORBInitializer) iClass.newInstance(); m_initializers.add(initializer); } catch (Exception exc) { // OMG states we should not throw an exception, but // this will help the user to detect his error // in initialiser properties. Should never print during // normal run. System.err.println(sk + " failed"); } } } } }
10,095
public static void setBold(MutableAttributeSet a, boolean b) { a.addAttribute(Bold, new Boolean(b)); }
public static void setBold(MutableAttributeSet a, boolean b) { a.addAttribute(Bold, Boolean.valueOf(b)); }
10,096
public static void setItalic(MutableAttributeSet a, boolean b) { a.addAttribute(Italic, new Boolean(b)); }
public static void setItalic(MutableAttributeSet a, boolean b) { a.addAttribute(Italic, Boolean.valueOf(b)); }
10,097
public static void setStrikeThrough(MutableAttributeSet a, boolean b) { a.addAttribute(StrikeThrough, new Boolean(b)); }
public static void setStrikeThrough(MutableAttributeSet a, boolean b) { a.addAttribute(StrikeThrough, Boolean.valueOf(b)); }
10,098
public static void setSubscript(MutableAttributeSet a, boolean b) { a.addAttribute(Subscript, new Boolean(b)); }
public static void setSubscript(MutableAttributeSet a, boolean b) { a.addAttribute(Subscript, Boolean.valueOf(b)); }
10,099
public static void setSuperscript(MutableAttributeSet a, boolean b) { a.addAttribute(Superscript, new Boolean(b)); }
public static void setSuperscript(MutableAttributeSet a, boolean b) { a.addAttribute(Superscript, Boolean.valueOf(b)); }
10,100
public static void setUnderline(MutableAttributeSet a, boolean b) { a.addAttribute(Underline, new Boolean(b)); }
public static void setUnderline(MutableAttributeSet a, boolean b) { a.addAttribute(Underline, Boolean.valueOf(b)); }
10,101
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the caret in the new position. visible = true; Rectangle area = null; int dot = getDot(); try { area = getComponent().modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; } if (area != null) damage(area); } repaint(); }
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the caret in the new position. visible = true; Rectangle area = null; int dot = getDot(); try { area = getComponent().modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; } if (area != null) damage(area); } repaint(); }
10,103
public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); documentListener = new DocumentHandler(); textComponent.getDocument().addDocumentListener(documentListener); active = textComponent.isEditable() && textComponent.isEnabled(); repaint(); }
public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); documentListener = new DocumentHandler(); Document doc = textComponent.getDocument(); if (doc != null) doc.addDocumentListener(documentListener); active = textComponent.isEditable() && textComponent.isEnabled(); repaint(); }
10,104
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
public void mousePressed(MouseEvent event) { // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
10,105
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
10,106
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
10,107
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text components): // - a left-click moves the caret // - a left-click when shift is held down expands the selection // - a right-click or click with any additional mouse button // on a text component is ignored // - a middle-click positions the caret and pastes the clipboard // contents. // - a middle-click when shift is held down is ignored if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) moveCaret(event); else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); else { positionCaret(event); textComponent.paste(); } else event.consume(); }
10,108
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; } if (rect == null) return; // Check if paint has possibly been called directly, without a previous // call to damage(). In this case we need to do some cleanup first. if ((x != rect.x) || (y != rect.y)) { repaint(); // Erase previous location of caret. x = rect.x; y = rect.y; width = 1; height = rect.height; } // Now draw the caret on the new position if visible. if (visible && active) { g.setColor(textComponent.getCaretColor()); g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height - 1); } }
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; } if (rect == null) return; // Check if paint has possibly been called directly, without a previous // call to damage(). In this case we need to do some cleanup first. if ((x != rect.x) || (y != rect.y)) { repaint(); // Erase previous location of caret. x = rect.x; y = rect.y; width = 1; height = rect.height; } // Now draw the caret on the new position if visible. if (visible && active) { g.setColor(textComponent.getCaretColor()); g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height - 1); } }
10,109
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJDialog(); return accessibleContext; }
10,110
protected EditorKit createDefaultEditorKit() { return null; // TODO } // createDefaultEditorKit()
protected EditorKit createDefaultEditorKit() { return super.createDefaultEditorKit(); // TODO } // createDefaultEditorKit()
10,111
protected String paramString() { return null; // TODO } // paramString()
protected String paramString() { return super.paramString(); // TODO } // paramString()
10,112
public void replaceSelection(String content) { // TODO } // replaceSelection()
publicsuper.replaceSelection(content); voidsuper.replaceSelection(content); replaceSelection(Stringsuper.replaceSelection(content); content)super.replaceSelection(content); { //super.replaceSelection(content); TODO }super.replaceSelection(content); //super.replaceSelection(content); replaceSelection()
10,113
public void setDocument(Document document) { // TODO } // setDocument()
publicsuper.setDocument(document); voidsuper.setDocument(document); setDocument(Documentsuper.setDocument(document); document)super.setDocument(document); { //super.setDocument(document); TODO }super.setDocument(document); //super.setDocument(document); setDocument()
10,114
public final void setEditorKit(EditorKit editor) { // TODO } // setEditorKit()
publicsuper.setEditorKit(editor); finalsuper.setEditorKit(editor); voidsuper.setEditorKit(editor); setEditorKit(EditorKitsuper.setEditorKit(editor); editor)super.setEditorKit(editor); { //super.setEditorKit(editor); TODO }super.setEditorKit(editor); //super.setEditorKit(editor); setEditorKit()
10,115
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 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 if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
10,116
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); }
10,117
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
10,118
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
10,119
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); }
10,120
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 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 if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
10,121
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes/* if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"<" + nodeNameString + ">"); // print opening statement if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); String newindent = indent + sPrettyXDFOutputIndentation; // bump up the indentation // 2. Print out the axisIdRefs as child nodes Iterator iter = axisIdRefOrder.iterator(); while (iter.hasNext()) { String axisIdRef = (String) iter.next(); if (sPrettyXDFOutput) writeOut(outputstream, newindent); // indent node if desired writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); } // 3. Close this node if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired writeOut(outputstream,"</" + nodeNameString + ">"); // print opening statement if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); }
10,122
protected void resolve() { // Do nothing }
protected void resolve() { // Do nothing }
10,123
protected void unresolve() { // Do nothing }
protected void unresolve() { // Do nothing }
10,124
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } return result; }
public static IKeyPairCodec getInstance(String name) if (name == null) return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } return result; }
10,125
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } return result; }
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); return result; }
10,126
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } return result; }
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } return result; }
10,127
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } return result; }
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec"); } if (name.startsWith("/")) return null; if (name.endsWith("/")) return getInstance(name.substring(0, name.length() - 1), Registry.RAW_ENCODING_ID); int i = name.indexOf("/"); if (i == -1) return getInstance(name, Registry.RAW_ENCODING_ID); String kpgName = name.substring(0, i); String formatName = name.substring(i + 1); return getInstance(kpgName, formatName); }
10,128
public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); }
public static synchronized final Set getNames() { return KeyPairGeneratorFactory.getNames(); }
10,129
public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); }
public static final Set getNames() { if (names == null) { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.X509_ENCODING_SORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.PKCS8_ENCODING_SHORT_NAME); hs.add(Registry.RSA_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); hs.add(Registry.RSA_KPG + "/" + Registry.X509_ENCODING_SORT_NAME); hs.add(Registry.RSA_KPG + "/" + Registry.PKCS8_ENCODING_SHORT_NAME); hs.add(Registry.DH_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); hs.add(Registry.SRP_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); names = Collections.unmodifiableSet(hs); } return names; }
10,130
private void processVTKeyPressed(KeyEvent e){ keyProcessed = true;// displayInfo(e,"Pressed " + keyProcessed); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; }// if (linux)// if (keyCode == e.VK_UNDEFINED || if ( keyCode == e.VK_CAPS_LOCK || keyCode == e.VK_SHIFT || keyCode == e.VK_ALT || keyCode == e.VK_ALT_GRAPH ) {// displayInfo(e,"Pressed "); return; }// displayInfo(e,"Pressed " + keyProcessed); KeyStroke ks = KeyStroke.getKeyStroke(e.getKeyCode(),e.getModifiers(),false); if (emulatorAction(ks,e)) { return; } if (isLinux) lastKeyStroke = keyMap.getKeyStrokeText(e,isAltGr); else lastKeyStroke = keyMap.getKeyStrokeText(e);// System.out.println("lastKeyStroke " + lastKeyStroke); if (lastKeyStroke != null && !lastKeyStroke.equals("null")) { if (lastKeyStroke.startsWith("[") || lastKeyStroke.length() == 1) { screen.sendKeys(lastKeyStroke); if (recording) recordBuffer.append(lastKeyStroke); } else { executeMeMacro(lastKeyStroke); } if (lastKeyStroke.equals("[markleft]") || lastKeyStroke.equals("[markright]") || lastKeyStroke.equals("[markup]") || lastKeyStroke.equals("[markdown]")) { doKeyBoundArea(e,lastKeyStroke); } } else keyProcessed = false; if (keyProcessed) e.consume(); }
private void processVTKeyPressed(KeyEvent e){ keyProcessed = true;// displayInfo(e,"Pressed " + keyProcessed); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; }// if (linux)// if (keyCode == e.VK_UNDEFINED || if ( keyCode == e.VK_CAPS_LOCK || keyCode == e.VK_SHIFT || keyCode == e.VK_ALT || keyCode == e.VK_ALT_GRAPH ) {// displayInfo(e,"Pressed "); return; }// displayInfo(e,"Pressed " + keyProcessed); KeyStroke ks = KeyStroke.getKeyStroke(e.getKeyCode(),e.getModifiers(),false); if (emulatorAction(ks,e)) { return; } if (isLinux) lastKeyStroke = keyMap.getKeyStrokeText(e,isAltGr); else lastKeyStroke = keyMap.getKeyStrokeText(e);// System.out.println("lastKeyStroke " + lastKeyStroke); if (lastKeyStroke != null && !lastKeyStroke.equals("null")) { if (lastKeyStroke.startsWith("[") || lastKeyStroke.length() == 1) { screen.sendKeys(lastKeyStroke); if (recording) recordBuffer.append(lastKeyStroke); } else { executeMeMacro(lastKeyStroke); } if (lastKeyStroke.equals("[markleft]") || lastKeyStroke.equals("[markright]") || lastKeyStroke.equals("[markup]") || lastKeyStroke.equals("[markdown]")) { doKeyBoundArea(e,lastKeyStroke); } } else keyProcessed = false; if (keyProcessed) e.consume(); }
10,131
public Object clone() throws CloneNotSupportedException { return super.clone(); }
public Object clone() throws CloneNotSupportedException { BasePRNG result = (BasePRNG) super.clone(); if (this.buffer != null) result.buffer = (byte[])this.buffer.clone(); return result; }
10,132
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,133
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); DerUtil.checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,134
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); DerUtil.checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,135
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,136
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,137
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,138
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(DSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue derParams = der.read(); checkIsConstructed(derParams, "Wrong DSS Parameters field"); DERValue val = der.read(); checkIsBigInteger(val, "Wrong P field"); p = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong Q field"); q = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong G field"); g = (BigInteger) val.getValue(); val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] yBytes = ((BitString) val.getValue()).toByteArray(); DERReader dsaPub = new DERReader(yBytes); val = dsaPub.read(); DerUtil.checkIsBigInteger(val, "Wrong Y field"); y = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException e = new InvalidParameterException(); e.initCause(x); throw e; } return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); }
10,139
public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); }
public void dump(PrintStream stream, int indent) { StringBuffer b = new StringBuffer(); for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); }
10,140
public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); }
public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); }
10,141
public int getElementIndex(int offset) { // If we have no children, return -1. if (getElementCount() == 0) return - 1; // XXX: There is surely a better algorithm // as beginning from first element each time. for (int index = 0; index < children.length; ++index) { Element elem = children[index]; if ((elem.getStartOffset() <= offset) && (offset < elem.getEndOffset())) return index; } // If offset is greater than the index of the last element, return // the index of the last element. return getElementCount() - 1; }
public int getElementIndex(int offset) { // If we have no children, return -1. if (getElementCount() == 0) return - 1; // XXX: There is surely a better algorithm // as beginning from first element each time. for (int index = 0; index < children.length; ++index) { Element elem = children[index]; if ((elem.getStartOffset() <= offset) && (offset < elem.getEndOffset())) return index; } // If offset is greater than the index of the last element, return // the index of the last element. return getElementCount() - 1; }
10,142
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
10,143
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
10,144
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
10,145
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startPos = createPosition(start); endPos = createPosition(end); } } catch (BadLocationException ex) { AssertionError as; as = new AssertionError("BadLocationException thrown " + "here. start=" + start + ", end=" + end + ", length=" + getLength()); as.initCause(ex); throw as; } } }
10,146
protected Element createBranchElement(Element parent, AttributeSet attributes) { return new BranchElement(parent, attributes); }
protected Element createBranchElement(Element parent, AttributeSet attributes) { return new BranchElement(parent, attributes); }
10,147
protected Element createBranchElement(Element parent, AttributeSet attributes) { return new BranchElement(parent, attributes); }
protected Element createBranchElement(Element parent, AttributeSet attributes) { return new BranchElement(parent, attributes); }
10,148
protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end) { return new LeafElement(parent, attributes, start, end); }
protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end) { return new LeafElement(parent, attributes, start, end); }
10,149
protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end) { return new LeafElement(parent, attributes, start, end); }
protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end) { return new LeafElement(parent, attributes, start, end); }
10,150
public Position createPosition(final int offset) throws BadLocationException { return content.createPosition(offset); }
public Position createPosition(final int offset) throws BadLocationException { return content.createPosition(offset); }
10,151
public Position createPosition(final int offset) throws BadLocationException { return content.createPosition(offset); }
public Position createPosition(final int offset) throws BadLocationException { return content.createPosition(offset); }
10,152
protected void fireChangedUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event); }
protected void fireChangedUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event); }
10,153
protected void fireChangedUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event); }
protected void fireChangedUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event); }
10,154
protected void fireInsertUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event); }
protected void fireInsertUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event); }
10,155
protected void fireInsertUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event); }
protected void fireInsertUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event); }
10,156
protected void fireRemoveUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event); }
protected void fireRemoveUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event); }
10,157
protected void fireRemoveUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event); }
protected void fireRemoveUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event); }
10,158
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); }
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); }
10,159
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); }
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); }
10,160
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); }
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); }
10,161
public int getAsynchronousLoadPriority() { return 0; }
public int getAsynchronousLoadPriority() { return 0; }
10,162
protected AttributeContext getAttributeContext() { return context; }
protected AttributeContext getAttributeContext() { return context; }
10,163
protected AttributeContext getAttributeContext() { return context; }
protected AttributeContext getAttributeContext() { return context; }
10,164
public Element getBidiRootElement() { return null; }
public Element getBidiRootElement() { return null; }
10,165
protected Content getContent() { return content; }
protected Content getContent() { return content; }
10,166
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; }
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; }
10,167