Codota Logo
de.schlichtherle.truezip.util
Code IndexAdd Codota to your IDE (free)

How to use de.schlichtherle.truezip.util

Best Java code snippets using de.schlichtherle.truezip.util (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: de.schlichtherle.truezip/truezip-file

/**
 * Returns the value of the property {@code lenient}.
 *
 * @return The value of the property {@code lenient}.
 * @see    #setLenient(boolean)
 */
public boolean isLenient() {
  return this.outputPreferences.get(CREATE_PARENTS);
}
origin: de.schlichtherle.truezip/truezip-driver-zip

UnknownKeyFeedback getUnknownKeyFeedback() {
  final UnknownKeyFeedback uckf = this.unknownKeyFeedback;
  return null != uckf
      ? uckf
      : (this.unknownKeyFeedback = serviceLocator.getService(
        UnknownKeyFeedback.class,
        BasicUnknownKeyFeedback.class));
}
origin: de.schlichtherle.truezip/truezip-file

/**
 * Returns the current configuration.
 * First, this method peeks the inheritable thread local configuration
 * stack.
 * If no configuration has been {@link #push() pushed} yet, the global
 * configuration is returned.
 * Mind that the global configuration is shared by all threads.
 *
 * @return The current configuration.
 * @see    #push()
 */
public static TConfig get() {
  return configs.peekOrElse(GLOBAL);
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testClear2() {
  builder .uri(URI.create("scheme://authority/path?query#fragment"))
      .scheme(null)
      .authority(null)
      .path(null)
      .query(null)
      .fragment(null);
  testDefaults();
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testRemoveAll() {
  for (int i = 0; i < sets.length - 1; i++) {
    final SuffixSet set = sets[i];
    assertFalse(set.removeAll(empty));
    assertFalse(set.isEmpty());
    assertTrue(set.removeAll(sets[i + 1]));
    assertTrue(set.isEmpty());
  }
}
origin: de.schlichtherle.truezip/truezip-file

  @Override
  protected void onClose() { configs.popIf(this); }
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testClear1() {
  builder .uri(URI.create("scheme://authority/path?query#fragment"))
      .clear();
  testDefaults();
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testFailThenCheck() throws X {
  try {
    builder.fail(null);
    fail();
  } catch (final RuntimeException expected) {
    builder.check();
  }
  assertNotNull(builder.fail(newCause()));
  builder.check();
}
origin: de.schlichtherle.truezip/truezip-kernel

@Before
public void setUp() {
  builder = new UriBuilder();
}
origin: de.schlichtherle.truezip/truezip-file

  /**
   * Returns the <i>canonical suffix list</i> for all federated file system
   * types recognized by this {@code TArchiveDetector}.
   *
   * @return Either {@code ""} to indicate an empty set or
   *         a string of the form {@code "suffix[|suffix]*"},
   *         where {@code suffix} is a combination of lower case
   *         letters which does <em>not</em> start with a dot.
   *         The string never contains empty or duplicated suffixes and the
   *         suffixes are sorted in natural order.
   * @see    #TArchiveDetector(String)
   * @see    SuffixSet Syntax constraints for suffix lists.
   */
  @Override public String toString() { return suffixes.toString(); }
}
origin: de.schlichtherle.truezip/truezip-kernel

@Before
public void setUp() {
  this.encoder = new UriEncoder();
  this.decoder = new UriDecoder();
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testEqualsAndHashCode() {
  for (int i = 0; i < sets.length; i++) {
    for (int j = 0; j < sets.length ; j++) {
      assertTrue(sets[i].equals(sets[j]));
      assertEquals(sets[i].hashCode(), sets[j].hashCode());
    }
  }
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testRetainAll() {
  for (int i = 0; i < sets.length; i++)
    for (int j = 0; j < sets.length ; j++)
      assertFalse(sets[i].retainAll(sets[j]));
}
origin: de.schlichtherle.truezip/truezip-kernel

public Throwable trigger(final Class<?> from, final Throwable toThrow) {
  if (null == from)
    throw new NullPointerException();
  wrap(toThrow); // test if wrappable
  // DON'T put wrap(toThrow)! We want the stack trace of the call to
  // check(*), not of the call to this method!
  return throwables.put(from, toThrow);
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testCheck() throws X {
  builder.check();
}
origin: de.schlichtherle.truezip/truezip-kernel

@Test
public void testAddAll() {
  for (int i = 0; i < sets.length; i++)
    for (int j = 0; j < sets.length ; j++)
      assertFalse(sets[i].addAll(sets[j]));
}
origin: de.schlichtherle.truezip/truezip-kernel

  @Override
  protected void onClose() {
    configs.popIf(this);
  }
}
origin: de.schlichtherle.truezip/truezip-kernel

/**
 * Returns the current configuration.
 * First, this method peeks the inheritable thread local configuration
 * stack.
 * If no configuration has been {@link #push() pushed} yet, the global
 * configuration is returned.
 * Mind that the global configuration is shared by all threads.
 * 
 * @return The current configuration.
 * @see    #push()
 */
public static TestConfig get() {
  return configs.peekOrElse(GLOBAL);
}
origin: de.schlichtherle.truezip/truezip-driver-zip

InvalidKeyFeedback getInvalidKeyFeedback() {
  final InvalidKeyFeedback ickf = this.invalidKeyFeedback;
  return null != ickf
      ? ickf
      : (this.invalidKeyFeedback = serviceLocator.getService(
        InvalidKeyFeedback.class,
        BasicInvalidKeyFeedback.class));
}
origin: de.schlichtherle.truezip/truezip-kernel

/**
 * Pops the {@link #get() current configuration} off the inheritable thread
 * local configuration stack.
 * 
 * @throws IllegalStateException If the {@link #get() current configuration}
 *         is the global configuration.
 */
public static void pop() {
  configs.popIf(get());
}
de.schlichtherle.truezip.util

Most used classes

  • BitField
  • ArrayHelper
  • HashMaps
  • ConcurrencyUtils$TaskJoiner
  • ConcurrencyUtils
  • UriBuilder,
  • InheritableThreadLocalStack,
  • BitFieldTest$Dummy,
  • ConcurrencyUtils$TaskFactory,
  • ExceptionBuilder,
  • ExceptionBuilderTestSuite,
  • JointIterator,
  • Pool,
  • QuotedUriSyntaxException,
  • ServiceLocator,
  • Threads,
  • Throwables,
  • UriBuilderTest,
  • UriDecoder
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now