- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
/** * Returns the dir sync flags in the supplied response or -1 if no flags exists. * * @param response of a previous dir sync operation * * @return dir sync flags or -1 */ protected long getDirSyncFlags(final Response<SearchResult> response) { long flags = -1; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { flags = ctl.getFlags(); } return flags; }
/** * Returns the dir sync flags in the supplied response or -1 if no flags exists. * * @param response of a previous dir sync operation * * @return dir sync flags or -1 */ protected long getDirSyncFlags(final Response<SearchResult> response) { long flags = -1; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { flags = ctl.getFlags(); } return flags; }
/** * Returns the dir sync flags in the supplied response or -1 if no flags exists. * * @param response of a previous dir sync operation * * @return dir sync flags or -1 */ protected long getDirSyncFlags(final Response<SearchResult> response) { long flags = -1; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { flags = ctl.getFlags(); } return flags; }
@Override public byte[] encode() { final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(BigInteger.valueOf(getFlags())), new IntegerType(getMaxAttributeCount()), new OctetStringType(getCookie() != null ? getCookie() : EMPTY_COOKIE)); return se.encode(); }
@Override public byte[] encode() { final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(BigInteger.valueOf(getFlags())), new IntegerType(getMaxAttributeCount()), new OctetStringType(getCookie() != null ? getCookie() : EMPTY_COOKIE)); return se.encode(); }
@Override public byte[] encode() { final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(BigInteger.valueOf(getFlags())), new IntegerType(getMaxAttributeCount()), new OctetStringType(getCookie() != null ? getCookie() : EMPTY_COOKIE)); return se.encode(); }
ctl = new AdDirSyncImpl(); ((AdDirSyncImpl) ctl).setCookie(c.getCookie()); ((AdDirSyncImpl) ctl).setFlags(AdDirSyncFlag.getFlags((int) c.getFlags())); ((AdDirSyncImpl) ctl).setMaxReturnLength(c.getMaxAttributeCount()); ctl.setCritical(c.getCriticality());