rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public int getContentLength() { return (getHeaderFieldInt("content-length", -1)); | public int getContentLength() { return getHeaderFieldInt("content-length", -1); | public int getContentLength() { return (getHeaderFieldInt("content-length", -1)); } |
public String getContentType() { String type = getHeaderField("content-type"); if (type == null) type = guessContentTypeFromName(getURL().getFile()); return (type); | public String getContentType() { return getHeaderField("content-type"); | public String getContentType() { String type = getHeaderField("content-type"); if (type == null) type = guessContentTypeFromName(getURL().getFile()); return (type); } |
public long getDate() { return (getHeaderFieldDate("date", 0)); } | public long getDate() { return getHeaderFieldDate("date", 0L); } | public long getDate() { return (getHeaderFieldDate("date", 0)); } |
public static boolean getDefaultAllowUserInteraction() { return (def_allow_user_inter); | public static boolean getDefaultAllowUserInteraction() { return defaultAllowUserInteraction; | public static boolean getDefaultAllowUserInteraction() { return (def_allow_user_inter); } |
public static String getDefaultRequestProperty(String key) { return ((String) def_req_props.get(key.toLowerCase())); } | public static String getDefaultRequestProperty(String key) { return null; } | public static String getDefaultRequestProperty(String key) { return ((String) def_req_props.get(key.toLowerCase())); } |
public boolean getDefaultUseCaches() { return (def_use_caches); | public boolean getDefaultUseCaches() { return defaultUseCaches; | public boolean getDefaultUseCaches() { return (def_use_caches); } |
public boolean getDoInput() { return (doInput); | public boolean getDoInput() { return doInput; | public boolean getDoInput() { return (doInput); } |
public boolean getDoOutput() { return (doOutput); | public boolean getDoOutput() { return doOutput; | public boolean getDoOutput() { return (doOutput); } |
public long getExpiration() { return (getHeaderFieldDate("expires", 0)); | public long getExpiration() { return getHeaderFieldDate("expires", 0L); | public long getExpiration() { return (getHeaderFieldDate("expires", 0)); } |
public static FileNameMap getFileNameMap() { return (fileNameMap); } | public static synchronized FileNameMap getFileNameMap() { if (fileNameMap == null) fileNameMap = new MimeTypeMapper(); return fileNameMap; } | public static FileNameMap getFileNameMap() { return (fileNameMap); } |
public String getHeaderField(String name) { for (int i = 0;; i++) { String key = getHeaderFieldKey(i); if (key == null) return (null); if (key.toLowerCase().equals(name.toLowerCase())) return (getHeaderField(i)); } | public String getHeaderField(int index) { return null; | public String getHeaderField(String name) { for (int i = 0;; i++) { String key = getHeaderFieldKey(i); if (key == null) return (null); if (key.toLowerCase().equals(name.toLowerCase())) return (getHeaderField(i)); } } |
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); | public long getHeaderFieldDate(String name, long defaultValue) { if (! dateformats_initialized) initializeDateFormats(); | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... |
if (position == null) position = new ParsePosition(0); | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | |
Date d = new Date(value); | long result = defaultValue; String str = getHeaderField(name); | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... |
if (d == null) return (def); | if (str != null) { for (int i = 0; i < dateFormats.length; i++) { SimpleDateFormat df = dateFormats[i]; position.setIndex(0); position.setErrorIndex(0); Date date = df.parse(str, position); if (date != null) return date.getTime(); } } | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... |
return (d.getTime() / 1000); } | return result; } | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... |
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); | public int getHeaderFieldInt(String name, int defaultValue) { String value = getHeaderField(name); | public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } |
int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } | if (value == null) return defaultValue; | public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } |
return (retval); | try { return Integer.parseInt(value); } catch (NumberFormatException e) { return defaultValue; } | public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } |
public String getHeaderFieldKey(int index) { return (null); | public String getHeaderFieldKey(int index) { return null; | public String getHeaderFieldKey(int index) { return (null); } |
public long getIfModifiedSince() { return (ifModifiedSince); | public long getIfModifiedSince() { return ifModifiedSince; | public long getIfModifiedSince() { return (ifModifiedSince); } |
public InputStream getInputStream() throws IOException { return (null); | public InputStream getInputStream() throws IOException { throw new UnknownServiceException("Protocol " + url.getProtocol() + " does not support input."); | public InputStream getInputStream() throws IOException { return (null); } |
public long getLastModified() { return (getHeaderFieldDate("last-modified", 0)); } | public long getLastModified() { return getHeaderFieldDate("last-modified", 0L); } | public long getLastModified() { return (getHeaderFieldDate("last-modified", 0)); } |
public OutputStream getOutputStream() throws IOException { return (null); | public OutputStream getOutputStream() throws IOException { throw new UnknownServiceException("Protocol " + url.getProtocol() + " does not support output."); | public OutputStream getOutputStream() throws IOException { return (null); } |
public Permission getPermission() throws IOException { return (new java.security.AllPermission()); | public Permission getPermission() throws IOException { return new AllPermission(); | public Permission getPermission() throws IOException { return (new java.security.AllPermission()); } |
public Map getRequestProperties() { return Collections.unmodifiableMap(req_props); | public Map getRequestProperties() { if (connected) throw new IllegalStateException("Already connected"); return Collections.EMPTY_MAP; | public Map getRequestProperties() { return Collections.unmodifiableMap(req_props); } |
public String getRequestProperty(String key) { return ((String) req_props.get(key.toLowerCase())); } | public String getRequestProperty(String key) { if (connected) throw new IllegalStateException("Already connected"); return null; } | public String getRequestProperty(String key) { return ((String) req_props.get(key.toLowerCase())); } |
public URL getURL() { return (url); | public URL getURL() { return url; | public URL getURL() { return (url); } |
public boolean getUseCaches() { return (useCaches); | public boolean getUseCaches() { return useCaches; | public boolean getUseCaches() { return (useCaches); } |
public static String guessContentTypeFromName(String filename) { return (fileNameMap.getContentTypeFor(filename.toLowerCase())); } | public static String guessContentTypeFromName(String filename) { return getFileNameMap().getContentTypeFor(filename.toLowerCase()); } | public static String guessContentTypeFromName(String filename) { return (fileNameMap.getContentTypeFor(filename.toLowerCase())); } |
public static String guessContentTypeFromStream(InputStream is) throws IOException { return ("application/octet-stream"); | public static String guessContentTypeFromStream(InputStream is) throws IOException { return "application/octet-stream"; | public static String guessContentTypeFromStream(InputStream is) throws IOException { return ("application/octet-stream"); } |
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); | public static synchronized void setContentHandlerFactory(ContentHandlerFactory factory) { if (URLConnection.factory != null) throw new Error("ContentHandlerFactory already set"); | public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; } |
factory = fac; | SecurityManager s = System.getSecurityManager(); if (s != null) s.checkSetFactory(); URLConnection.factory = factory; | public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; } |
public static synchronized void setDefaultAllowUserInteraction(boolean allow) { def_allow_user_inter = allow; | public static void setDefaultAllowUserInteraction(boolean allow) { defaultAllowUserInteraction = allow; | public static synchronized void setDefaultAllowUserInteraction(boolean allow) { def_allow_user_inter = allow; } |
public static synchronized void setDefaultRequestProperty(String key, String value) { def_req_props.put(key.toLowerCase(), value); | public static void setDefaultRequestProperty(String key, String value) { | public static synchronized void setDefaultRequestProperty(String key, String value) { def_req_props.put(key.toLowerCase(), value); } |
public synchronized void setDefaultUseCaches(boolean use) { def_use_caches = use; | public void setDefaultUseCaches(boolean use) { defaultUseCaches = use; | public synchronized void setDefaultUseCaches(boolean use) { def_use_caches = use; } |
public void setDoInput(boolean input) { | public void setDoInput(boolean input) { if (connected) throw new IllegalStateException("Already connected"); | public void setDoInput(boolean input) { doInput = input; } |
public void setDoOutput(boolean output) { | public void setDoOutput(boolean output) { if (connected) throw new IllegalStateException("Already connected"); | public void setDoOutput(boolean output) { doOutput = output; } |
public static void setFileNameMap(FileNameMap fileNameMap) { URLConnection.fileNameMap = fileNameMap; } | public static synchronized void setFileNameMap(FileNameMap map) { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkSetFactory(); fileNameMap = map; } | public static void setFileNameMap(FileNameMap fileNameMap) { URLConnection.fileNameMap = fileNameMap; } |
public void setIfModifiedSince(long modified_since) { ifModifiedSince = modified_since; } | public void setIfModifiedSince(long ifmodifiedsince) { if (connected) throw new IllegalStateException("Already connected"); ifModifiedSince = ifmodifiedsince; } | public void setIfModifiedSince(long modified_since) { ifModifiedSince = modified_since; } |
public void setRequestProperty(String key, String value) { req_props.put(key.toLowerCase(), value); } | public void setRequestProperty(String key, String value) { if (connected) throw new IllegalStateException("Already connected"); if (key == null) throw new NullPointerException("key is null"); } | public void setRequestProperty(String key, String value) { req_props.put(key.toLowerCase(), value); } |
public void setUseCaches(boolean use_caches) { useCaches = use_caches; } | public void setUseCaches(boolean usecaches) { if (connected) throw new IllegalStateException("Already connected"); useCaches = usecaches; } | public void setUseCaches(boolean use_caches) { useCaches = use_caches; } |
public String toString() { return (url.toString()); | public String toString() { return this.getClass().getName() + ":" + url.toString(); | public String toString() { return (url.toString()); } |
createContentHandler(String mime_type); | ContentHandler createContentHandler(String mimeType); | createContentHandler(String mime_type); |
public MimeTypeMapper() { | public MimeTypeMapper() { ; | public MimeTypeMapper() { } |
String[] match = null; | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | |
match = (fmt_count <= 3 ? formatData.getShortWeekdays() : formatData.getWeekdays()); | set1 = formatData.getWeekdays(); set2 = formatData.getShortWeekdays(); | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
match = (fmt_count == 3 ? formatData.getShortMonths() : formatData.getMonths()); | set1 = formatData.getMonths(); set2 = formatData.getShortMonths(); | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
match = formatData.getAmPmStrings(); | set1 = formatData.getAmPmStrings(); | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
calendar_field = Calendar.DST_OFFSET; | calendar_field = Calendar.ZONE_OFFSET; | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
for (k = 1; k < strings.length; ++k) | for (k = 0; k < strings.length; ++k) | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
calendar.set (Calendar.ZONE_OFFSET, tz.getRawOffset ()); offset = 0; if (k > 2 && tz instanceof SimpleTimeZone) { SimpleTimeZone stz = (SimpleTimeZone) tz; offset = stz.getDSTSavings (); } | calendar.set (Calendar.DST_OFFSET, tz.getDSTSavings()); offset = tz.getRawOffset (); | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
else if (match != null) | else if (set1 != null) | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
for (i = offset; i < match.length; ++i) { if (match[i] != null) if (dateStr.toUpperCase().startsWith(match[i].toUpperCase(), | boolean found = false; for (i = offset; i < set1.length; ++i) { if (set1[i] != null) if (dateStr.toUpperCase().startsWith(set1[i].toUpperCase(), | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
if (i == match.length) | } if (!found && set2 != null) { for (i = offset; i < set2.length; ++i) { if (set2[i] != null) if (dateStr.toUpperCase().startsWith(set2[i].toUpperCase(), index)) { found = true; pos.setIndex(index + set2[i].length()); break; } } } if (!found) | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
pos.setIndex(index + match[i].length()); | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | |
getContentTypeFor(String filename); | String getContentTypeFor(String filename); | getContentTypeFor(String filename); |
public SimpleDateFormat(String pattern, Locale locale) | public SimpleDateFormat() | public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc... |
this.pattern = pattern; | public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc... | |
super(a_reason); | super(a_reason + " Minor: " + Integer.toHexString(a_minor) + " (" + (a_minor & 0xFFF) + "). Completed: "+a_completed); | protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason); minor = a_minor; completed = a_completed; } |
public DDC1ParseException(String s) { super(s); | public DDC1ParseException() { super(); | public DDC1ParseException(String s) { super(s); } |
if (SwingUtilities.isRightMouseButton(event)) | if (event.isPopupTrigger ()) | private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... |
if (SwingUtilities.isRightMouseButton(event)) | if (event.isPopupTrigger ()) | public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } |
if (SwingUtilities.isRightMouseButton(event)) | if (event.isPopupTrigger ()) | public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } |
getIconImage() { return(icon); } | public Image getIconImage() { return icon; } | getIconImage(){ return(icon);} |
this.preferredWidth = preferredWidth; | this.preferredWidth = preferredWidth; firePropertyChange("preferredWidth", oldPrefWidth, this.preferredWidth); | public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; } |
public boolean send() throws Exception, AddressException, MessagingException { | public boolean send() throws Exception { | public boolean send() throws Exception, AddressException, MessagingException { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it ... |
if (dataModel instanceof DefaultComboBoxModel) { | if (dataModel instanceof DefaultComboBoxModel) | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... |
} else if(dataModel instanceof MutableComboBoxModel){ | else if (dataModel instanceof MutableComboBoxModel) { | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... |
for(int i=mcbm.getSize()-1; i >= 0; i--) { | for (int i = mcbm.getSize() - 1; i >= 0; i--) | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... |
} else { throw new RuntimeException("Unable to remove the items because the data model it is not an instance of MutableComboBoxModel."); } | else throw new RuntimeException("Unable to remove the items because the data " +"model it is not an instance of " + "MutableComboBoxModel."); | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... |
if (button.getParent() instanceof JToolBar) button.setBorder(MetalBorders.getToolbarButtonBorder()); | public void installDefaults(AbstractButton button) { super.installDefaults(button); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); button.setFont(defaults.getFont("Button.font")); } | |
b.setRolloverEnabled(defaults.getBoolean(prefix + "rollover")); | protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); b.setBackground(defaults.getColor(prefix + "bac... | |
public abstract void generateCodeFor(VarReturnQuad quad); | public abstract void generateCodeFor(ConditionalBranchQuad quad); | public abstract void generateCodeFor(VarReturnQuad quad); |
FileURLLoader(URLClassLoader classloader, URL url) | FileURLLoader(URLClassLoader classloader, URL url, URL absoluteUrl) | FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); } |
super(classloader, url); dir = new File(baseURL.getFile()); | super(classloader, url, absoluteUrl); dir = new File(absoluteUrl.getFile()); | FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); } |
public JarURLLoader(URLClassLoader classloader, URL baseURL) | public JarURLLoader(URLClassLoader classloader, URL baseURL, URL absoluteUrl) | public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte... |
super(classloader, baseURL); | super(classloader, baseURL, absoluteUrl); | public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte... |
loader = new JarURLLoader(this, newUrl); | loader = new JarURLLoader(this, newUrl, absoluteURL); | private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa... |
loader = new FileURLLoader(this, newUrl); | loader = new FileURLLoader(this, newUrl, absoluteURL); | private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa... |
result.setBlock( result.getBlock()+superblock.getFirstDataBlock() ); | result.setBlock(blockNr); | public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no... |
public FileSystemException(String message, Throwable cause) { super(message, cause); | public FileSystemException() { super(); | public FileSystemException(String message, Throwable cause) { super(message, cause); } |
public BlockReservation(boolean successful, long block, int preallocCount, long freeBlocksCount) { | public BlockReservation(boolean successful, long block, int preallocCount) { | public BlockReservation(boolean successful, long block, int preallocCount, long freeBlocksCount) { this.successful = successful; this.block = block; this.preallocCount = preallocCount; this.freeBlocksCount = freeBlocksCount; } |
this.freeBlocksCount = freeBlocksCount; | public BlockReservation(boolean successful, long block, int preallocCount, long freeBlocksCount) { this.successful = successful; this.block = block; this.preallocCount = preallocCount; this.freeBlocksCount = freeBlocksCount; } | |
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { | public TreeModelEvent(Object source, Object[] path) { | public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent() |
this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } | this.path = new TreePath(path); } | public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent() |
vm.dumpStatistics(out); | public static void main(String[] args) { final Vm vm = getVm(); if ((vm != null) && !vm.isBootstrap()) { final PrintStream out = System.out; out.println("JNode VM " + vm.getVersion()); vm.getStatics().dumpStatistics(out); if (vm.hotMethodManager != null) { vm.hotMethodManager.dumpStatistics(out); } vm... | |
public File createFileObject(File directory, String filename) { return null; } | public File createFileObject(File dir, String filename) { return new File(dir, filename); } | public File createFileObject(File directory, String filename) { return null; // TODO } // createFileObject() |
public abstract File createNewFolder(File file) throws IOException; | public abstract File createNewFolder(File containingDir) throws IOException; | public abstract File createNewFolder(File file) throws IOException; |
public static FileSystemView getFileSystemView() { return null; } | public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); return null; } | public static FileSystemView getFileSystemView() { return null; // TODO } // getFileSystemView() |
public File[] getFiles(File directory, boolean fileHiding) { return null; } | public File[] getFiles(File dir, boolean useFileHiding) { if (dir == null) return null; File[] files = dir.listFiles(); if (! useFileHiding) return files; ArrayList trim = new ArrayList(); for (int i = 0; i < files.length; i++) if (! files[i].isHidden()) trim.add(files[i]); File[] value = (File[]) trim.toArray(new File... | public File[] getFiles(File directory, boolean fileHiding) { return null; // TODO } // getFiles() |
public File getHomeDirectory() { return null; } | public File getHomeDirectory() { return createFileObject(System.getProperty("user.home")); } | public File getHomeDirectory() { return null; // TODO } // getHomeDirectory() |
public File getParentDirectory(File directory) { return null; } | public File getParentDirectory(File f) { if (f == null) return null; return f.getParentFile(); } | public File getParentDirectory(File directory) { return null; // TODO } // getParentDirectory() |
public abstract File[] getRoots(); | public File[] getRoots() { return null; } | public abstract File[] getRoots(); |
public abstract boolean isHiddenFile(File file); | public boolean isHiddenFile(File f) { return f.isHidden(); } | public abstract boolean isHiddenFile(File file); |
public abstract boolean isRoot(File file); | public boolean isRoot(File f) { return false; } | public abstract boolean isRoot(File file); |
showMe_itemStateChanged(e); | hideTabBar_itemStateChanged(e); | public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } |
sessions.requestFocus(); | addWindowListener(new WindowAdapter() { public void windowOpened(WindowEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() { sessions.requestFocus(); } }); } }); | void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options ... |
addLabelComponent("", sdn, sip); sdn.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { doItemStateChanged(e); } }); | public static void doEntry(Frame parent, String propKey, Properties props) { confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); useProxy = new JCheckBox(LangTool.getString("conf.labelUsePro... | |
public final boolean hasFeature(int feature) { return ((this.features & feature) == feature); | public final boolean hasFeature(long feature) { return ((this.exFeatures & feature) == feature); | public final boolean hasFeature(int feature) { return ((this.features & feature) == feature); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.