Logo Search packages:      
Sourcecode: jabref version File versions  Download package

net::sf::jabref::Util Class Reference

List of all members.


Detailed Description

Describe class Util here.

Author:
Version:
1.0

Definition at line 119 of file Util.java.


Static Public Member Functions

static String __wrap2 (String in, int wrapAmount)
static String _wrap2 (String in, int wrapAmount)
static void bool (boolean b)
static String checkLegalKey (String key)
static String checkName (String s)
static boolean copyFile (File source, File dest, boolean deleteIfExists) throws IOException
static synchronized String createNeutralId ()
static String[][] decodeStringDoubleArray (String value)
static boolean deleteLockFile (File file)
static String[] delimToStringArray (String names, String delimiter)
static String easyDateFormat (Date date)
static String easyDateFormat ()
static String encodeStringArray (String[] entry)
static String encodeStringArray (String[][] values)
static boolean equals (Object one, Object two)
static String expandBrackets (String bracketString, BibtexEntry entry, BibtexDatabase database)
static File expandFilename (String name, String dir)
static File expandFilename (String name, String[] dir)
static TreeSet< String > findAllWordsInField (BibtexDatabase db, String field, String remove)
static Map< BibtexEntry, List
< File > > 
findAssociatedFiles (Collection< BibtexEntry > entries, Collection< String > extensions, Collection< File > directories)
static Set< String > findAuthorLastNames (BibtexDatabase db, List< String > fields)
static TreeSet< String > findDeliminatedWordsInField (BibtexDatabase db, String field, String deliminator)
static List< String > findEncodingsForString (String characters)
static String findFile (BibtexEntry entry, BibtexDatabase database, String directory, String file, boolean relative)
static String findFile (BibtexEntry entry, BibtexDatabase database, String file)
static String findFile (BibtexEntry entry, BibtexDatabase database, String[] directory, String file, boolean relative)
static String findFile (BibtexEntry entry, ExternalFileType fileType, List< String > extraDirs)
static Set< File > findFiles (Collection< String > extensions, Collection< File > directories)
static String findPdf (BibtexEntry entry, String extension, String[] directories)
static String findPdf (BibtexEntry entry, String extension, String directory)
static String findPdf (String key, String extension, String directory, OpenFileFilter off)
static String getCorrectFileName (String orgName, String defaultExtension)
static String getFieldAndFormat (String fieldAndFormat, BibtexEntry entry, BibtexDatabase database)
static String getFileExtension (File file)
static OpenFileFilter getFileFilterForField (String fieldName)
static long getLockFileTimeStamp (File file)
static int getMinimumIntegerDigits ()
static int getMonthNumber (String month)
static String getPublicationDate (BibtexEntry entry)
static boolean hasLockFile (File file)
static boolean isMarked (BibtexEntry be)
static String join (String[] strings, String separator, int from, int to)
static void markEntry (BibtexEntry be, NamedCompound ce)
static UndoableEdit massRenameField (Collection< BibtexEntry > entries, String field, String newField, boolean overwriteValues)
static UndoableEdit massSetField (Collection< BibtexEntry > entries, String field, String text, boolean overwriteValues)
static String nCase (String s)
static boolean openExternalFileAnyFormat (final MetaData metaData, String link, final ExternalFileType fileType) throws IOException
static boolean openExternalFileUnknown (JabRefFrame frame, BibtexEntry entry, MetaData metaData, String link, UnknownExternalFileType fileType) throws IOException
static void openExternalViewer (MetaData metaData, String link, String fieldName) throws IOException
static void openFileOnWindows (String link, boolean localFile) throws IOException
static void openFileWithApplicationOnWindows (String link, String application) throws IOException
static void openRemoteExternalFile (final MetaData metaData, final String link, final ExternalFileType fileType)
static String parseField (String content)
static ArrayList< String[]> parseMethodsCalls (String calls) throws RuntimeException
static void performCompatibilityUpdate ()
static void placeDialog (java.awt.Dialog diag, java.awt.Container win)
static void pr (String s)
static void pr_ (String s)
static String putBracesAroundCapitals (String s)
static String quote (String s, String specials, char quoteChar, int linewrap)
static String quote (String s, String specials, char quoteChar)
static String quoteForHTML (String s)
static String quoteMeta (String s)
static String removeBracesAroundCapitals (String s)
static String removeSingleBracesAroundCapitals (String s)
static String replaceSpecialCharacters (String s)
static void runAbstractWorker (AbstractWorker worker) throws Throwable
static String sanitizeUrl (String link)
static void setAutomaticFields (BibtexEntry entry, boolean overwriteOwner, boolean overwriteTimestamp)
static void setAutomaticFields (Collection< BibtexEntry > bibs, boolean overwriteOwner, boolean overwriteTimestamp, boolean markEntries)
static String shaveString (String s)
static void showQuickErrorDialog (JFrame parent, String title, Exception e)
static String sortWordsAndRemoveDuplicates (String text)
static String stringArrayToDelimited (String[] strs, String delimiter)
static String stripBrackets (String s)
static String toFourDigitYear (String year, int thisYear)
static String toFourDigitYear (String year)
static String toUpperFirstLetter (String string)
static void unmarkEntry (BibtexEntry be, BibtexDatabase database, NamedCompound ce)
static String unquote (String s, char quoteChar)
static void updateCompletersForEntry (HashMap< String, AbstractAutoCompleter > autoCompleters, BibtexEntry bibtexEntry)
static NamedCompound upgradePdfPsToFile (BibtexDatabase database, String[] fields)
static boolean waitForFileLock (File file, int maxWaitCount)
static boolean warnAssignmentSideEffects (AbstractGroup[] groups, BibtexEntry[] entries, BibtexDatabase db, Component parent)
static String wrap2 (String in, int wrapAmount)
static String wrapHTML (String s, final int lineWidth)

Static Public Attributes

static Color fieldsCol = new Color(180, 180, 200)
static Pattern remoteLinkPattern = Pattern.compile("[a-z]+://.*")
static int thisYear

Static Protected Member Functions

static String findFile (BibtexEntry entry, BibtexDatabase database, File directory, String file)

Static Package Functions

 [static initializer]

Static Package Attributes

static Pattern bracedTitleCapitalPattern = Pattern.compile("\\{[A-Z]+\\}")
static final int EMPTY_IN_BOTH = 4
static final int EMPTY_IN_ONE = 2
static final int EMPTY_IN_TWO = 3
static final int EQUAL = 1
static final NumberFormat idFormat
static final int NOT_EQUAL = 0
static Pattern squareBracketsPattern = Pattern.compile("\\[.*?\\]")
static Pattern titleCapitalPattern = Pattern.compile("[A-Z]+")
static final int TYPE_MISMATCH = -1

Static Private Member Functions

static String encodeString (String s)
static Collection<?extends File > findFiles (Collection< String > extensions, File directory)
static String findInDir (String key, String dir, OpenFileFilter off, int count)
static void setAutomaticFields (BibtexEntry entry, boolean setOwner, String owner, boolean setTimeStamp, String timeStampField, String timeStamp)
static void unmarkOldStyle (BibtexEntry be, BibtexDatabase database, NamedCompound ce)

Static Private Attributes

static SimpleDateFormat dateFormatter = null
static int idCounter = 0

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index