signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class CharacterApi { /** * Get character corporation roles Returns a character & # 39 ; s corporation
* roles - - - This route is cached for up to 3600 seconds SSO Scope :
* esi - characters . read _ corporation _ roles . v1
* @ param characterId
* An EVE character ID ( required )
* @ param datasource ... | ApiResponse < CharacterRolesResponse > resp = getCharactersCharacterIdRolesWithHttpInfo ( characterId , datasource , ifNoneMatch , token ) ; return resp . getData ( ) ; |
public class PathService { /** * Returns a { @ link PathMatcher } for the given syntax and pattern as specified by { @ link
* FileSystem # getPathMatcher ( String ) } . */
public PathMatcher createPathMatcher ( String syntaxAndPattern ) { } } | return PathMatchers . getPathMatcher ( syntaxAndPattern , type . getSeparator ( ) + type . getOtherSeparators ( ) , displayNormalizations ) ; |
public class Instance { /** * Sets the scheduling options for this instance .
* @ return a zone operation if the set request was issued correctly , { @ code null } if the instance
* was not found
* @ throws ComputeException upon failure */
public Operation setSchedulingOptions ( SchedulingOptions scheduling , Ope... | return compute . setSchedulingOptions ( getInstanceId ( ) , scheduling , options ) ; |
public class ComponentFactoryDecorator { /** * { @ inheritDoc } */
@ Override public JScrollPane createScrollPane ( Component view , int vsbPolicy , int hsbPolicy ) { } } | return this . getDecoratedComponentFactory ( ) . createScrollPane ( view , vsbPolicy , hsbPolicy ) ; |
public class IPUtil { /** * Decides whether an IP is local or not */
public static boolean isValidLocalIP ( InetAddress ip ) throws SocketException { } } | String ipStr = ip . getHostAddress ( ) ; Iterator ips = getAllIPAddresses ( ) . iterator ( ) ; while ( ips . hasNext ( ) ) { InetAddress ip2 = ( InetAddress ) ips . next ( ) ; if ( ip2 . getHostAddress ( ) . equals ( ipStr ) ) { return true ; } } return false ; |
public class CmsLoginHelper { /** * Gets the list of OUs which should be selectable in the login dialog . < p >
* @ param cms the CMS context to use
* @ param predefOu the predefined OU
* @ return the list of organizational units for the OU selector */
public static List < CmsOrganizationalUnit > getOrgUnitsForLo... | List < CmsOrganizationalUnit > result = new ArrayList < CmsOrganizationalUnit > ( ) ; try { if ( predefOu == null ) { result . add ( OpenCms . getOrgUnitManager ( ) . readOrganizationalUnit ( cms , "" ) ) ; result . addAll ( OpenCms . getOrgUnitManager ( ) . getOrganizationalUnits ( cms , "" , true ) ) ; Iterator < Cms... |
public class QueryBuilder { /** * Increases the offset by the { @ code amount } .
* @ param amount the amount to increase the offset
* @ return a reference to this object */
@ Override public QueryBuilder < V > increaseOffsetBy ( Integer amount ) { } } | if ( offset == null ) { offset = 0 ; } this . offset += amount ; return this ; |
public class Gauge { /** * The factor defines the width of the minor tick mark .
* It can be in the range from 0 - 1.
* @ param FACTOR */
public void setMinorTickMarkWidthFactor ( final double FACTOR ) { } } | if ( null == minorTickMarkWidthFactor ) { _minorTickMarkWidthFactor = Helper . clamp ( 0.0 , 1.0 , FACTOR ) ; fireUpdateEvent ( REDRAW_EVENT ) ; } else { minorTickMarkWidthFactor . set ( FACTOR ) ; } |
public class RemoteQueuePointIterator { /** * Move to the next stream which has active ranges */
private void nextQueue ( ) { } } | if ( super . hasNext ( ) ) { do { if ( _currentSubIterator != null ) _currentSubIterator . finished ( ) ; _currentSubIterator = null ; _currentQueue = ( SIMPQueueControllable ) super . next ( ) ; try { _currentSubIterator = _currentQueue . getRemoteQueuePointIterator ( ) ; } catch ( SIMPException e ) { // No FFDC code ... |
public class SymmTridiagEVD { /** * Convenience method for computing the full eigenvalue decomposition of the
* given matrix
* @ param A
* Matrix to factorize . Main diagonal and superdiagonal is
* copied , and the matrix is not modified
* @ return Newly allocated decomposition
* @ throws NotConvergedExcept... | return new SymmTridiagEVD ( A . numRows ( ) ) . factor ( new SymmTridiagMatrix ( A ) ) ; |
public class AttributeQuery { /** * Create the SQL statement .
* @ param _ idx the _ idx
* @ return StringBuilder containing the statement
* @ throws EFapsException on error */
public String getSQLStatement ( final Integer _idx ) throws EFapsException { } } | prepareQuery ( ) ; final SQLSelect select = new SQLSelect ( "S" + _idx + "T" ) . column ( getSqlTable2Index ( ) . get ( this . attribute . getTable ( ) ) , this . attribute . getSqlColNames ( ) . get ( 0 ) ) . from ( getBaseType ( ) . getMainTable ( ) . getSqlTable ( ) , 0 ) ; // add child tables
if ( getSqlTable2Index... |
public class Bernoulli { /** * Set a coefficient in the internal table .
* @ param n the zero - based index of the coefficient . n = 0 for the constant term .
* @ param value the new value of the coefficient . */
protected void set ( final int n , final Rational value ) { } } | final int nindx = n / 2 ; if ( nindx < a . size ( ) ) { a . set ( nindx , value ) ; } else { while ( a . size ( ) < nindx ) { a . add ( Rational . ZERO ) ; } a . add ( value ) ; } |
public class InstrumentedExtractorBase { /** * Generates metrics for the instrumentation of this class . */
protected void regenerateMetrics ( ) { } } | if ( isInstrumentationEnabled ( ) ) { this . readRecordsMeter = Optional . of ( this . metricContext . meter ( MetricNames . ExtractorMetrics . RECORDS_READ_METER ) ) ; this . dataRecordExceptionsMeter = Optional . of ( this . metricContext . meter ( MetricNames . ExtractorMetrics . RECORDS_FAILED_METER ) ) ; this . ex... |
public class FileComparator { /** * for testing via main */
private static void print ( String kind , File [ ] f ) { } } | System . out . println ( kind ) ; for ( File element : f ) { System . out . println ( getComparable ( element ) ) ; } System . out . println ( ) ; |
public class WebDAVUtils { /** * Recursively copy the resources under the provided identifier .
* @ param services the trellis services
* @ param session the session
* @ param identifier the source identifier
* @ param destination the destination identifier
* @ param baseUrl the baseURL
* @ return the next ... | return services . getResourceService ( ) . get ( identifier ) . thenCompose ( res -> recursiveCopy ( services , session , res , destination , baseUrl ) ) ; |
public class ESRIBounds { /** * Replies the 2D bounds .
* @ return the 2D bounds */
@ Pure public Rectangle2d toRectangle2d ( ) { } } | final Rectangle2d bounds = new Rectangle2d ( ) ; bounds . setFromCorners ( this . minx , this . miny , this . maxx , this . maxy ) ; return bounds ; |
public class Base64 { /** * Reads < tt > infile < / tt > and encodes it to < tt > outfile < / tt > .
* @ param infile Input file
* @ param outfile Output file
* @ throws java . io . IOException if there is an error
* @ since 2.2 */
public static void encodeFileToFile ( String infile , String outfile ) throws IO... | String encoded = Base64 . encodeFromFile ( infile ) ; java . io . OutputStream out = null ; try { out = new java . io . BufferedOutputStream ( new FileOutputStream ( outfile ) ) ; out . write ( encoded . getBytes ( "US-ASCII" ) ) ; // Strict , 7 - bit output .
} catch ( IOException e ) { throw e ; // Catch and release ... |
public class DBInstance { /** * The status of a Read Replica . If the instance is not a Read Replica , this is blank .
* @ return The status of a Read Replica . If the instance is not a Read Replica , this is blank . */
public java . util . List < DBInstanceStatusInfo > getStatusInfos ( ) { } } | if ( statusInfos == null ) { statusInfos = new com . amazonaws . internal . SdkInternalList < DBInstanceStatusInfo > ( ) ; } return statusInfos ; |
public class ReversePurgeItemHashMap { /** * Gets the current value with the given key
* @ param key the given key
* @ return the positive value the key corresponds to or zero if the key is not found in the
* hash map . */
long get ( final T key ) { } } | if ( key == null ) { return 0 ; } final int probe = hashProbe ( key ) ; if ( states [ probe ] > 0 ) { assert ( keys [ probe ] ) . equals ( key ) ; return values [ probe ] ; } return 0 ; |
public class DateField { /** * example new DataField ( ) . setDate ( " 19 " , " 05 " , " 2013 " )
* @ param day String ' dd '
* @ param month String ' MMM '
* @ param year String ' yyyy '
* @ return true if is selected date , false when DataField doesn ' t exist */
private boolean setDate ( String day , String ... | String fullDate = RetryUtils . retry ( 4 , ( ) -> monthYearButton . getText ( ) ) . trim ( ) ; if ( ! fullDate . contains ( month ) || ! fullDate . contains ( year ) ) { monthYearButton . click ( ) ; if ( ! yearAndMonth . ready ( ) ) { monthYearButton . click ( ) ; } goToYear ( year , fullDate ) ; WebLink monthEl = new... |
public class GrpcUtil { /** * Verify { @ code authority } is valid for use with gRPC . The syntax must be valid and it must not
* include userinfo .
* @ return the { @ code authority } provided */
public static String checkAuthority ( String authority ) { } } | URI uri = authorityToUri ( authority ) ; checkArgument ( uri . getHost ( ) != null , "No host in authority '%s'" , authority ) ; checkArgument ( uri . getUserInfo ( ) == null , "Userinfo must not be present on authority: '%s'" , authority ) ; return authority ; |
public class AmazonRDSClient { /** * Starts an Amazon Aurora DB cluster that was stopped using the AWS console , the stop - db - cluster AWS CLI command ,
* or the StopDBCluster action .
* For more information , see < a
* href = " https : / / docs . aws . amazon . com / AmazonRDS / latest / AuroraUserGuide / auro... | request = beforeClientExecution ( request ) ; return executeStartDBCluster ( request ) ; |
public class ExecuteArgAnalyzer { protected void checkNonGenericParameter ( Method executeMethod , Parameter parameter ) { } } | if ( isNonGenericCheckTargetType ( parameter . getType ( ) ) ) { // e . g . List
final Type paramedType = parameter . getParameterizedType ( ) ; if ( paramedType == null ) { // no way ? no check just in case
return ; } if ( paramedType instanceof ParameterizedType ) { final Type [ ] typeArgs = ( ( ParameterizedType ) p... |
public class BandLU { /** * Creates an LU decomposition of the given matrix
* @ param A
* Matrix to decompose . Not modified
* @ return A LU decomposition of the matrix */
public static BandLU factorize ( BandMatrix A ) { } } | return new BandLU ( A . numRows ( ) , A . kl , A . ku ) . factor ( A , false ) ; |
public class FluentSelect { /** * Select all options that have a value matching the argument . That is , when given " foo " this
* would select an option like :
* & lt ; option value = " foo " & gt ; Bar & lt ; / option & gt ;
* @ param value The value to match against */
public FluentSelect selectByValue ( final... | executeAndWrapReThrowIfNeeded ( new SelectByValue ( value ) , Context . singular ( context , "selectByValue" , null , value ) , true ) ; return new FluentSelect ( super . delegate , currentElement . getFound ( ) , this . context , monitor , booleanInsteadOfNotFoundException ) ; |
public class Base64 { /** * Base64 encode a byte array .
* @ param data
* the data to encode .
* @ return a StringBuffer containing the encoded lines . */
public static StringBuffer encode ( byte [ ] data ) { } } | int rem = data . length % 3 ; int num = data . length / 3 ; StringBuffer result = new StringBuffer ( ) ; int p = 0 ; // int c = 0;
for ( int i = 0 ; i < num ; i ++ ) { int b1 = ( data [ p ] & 0xfc ) >> 2 ; int b2 = ( data [ p ] & 0x03 ) << 4 | ( data [ p + 1 ] & 0xf0 ) >> 4 ; int b3 = ( data [ p + 1 ] & 0x0f ) << 2 | (... |
public class CertificateUtil { /** * Decode either a sequence of DER - encoded X . 509 certificates or a PKCS # 7 certificate chain .
* @ param certificateBytes the byte [ ] to decode from .
* @ return a { @ link List } of certificates deocded from { @ code certificateBytes } .
* @ throws UaException if decoding ... | Preconditions . checkNotNull ( certificateBytes , "certificateBytes cannot be null" ) ; CertificateFactory factory ; try { factory = CertificateFactory . getInstance ( "X.509" ) ; } catch ( CertificateException e ) { throw new UaException ( StatusCodes . Bad_InternalError , e ) ; } try { Collection < ? extends Certific... |
public class SQLiteUpdateTaskHelper { /** * Execute SQL .
* @ param database
* the database
* @ param commands
* the commands */
public static void executeSQL ( final SQLiteDatabase database , List < String > commands ) { } } | for ( String command : commands ) { executeSQL ( database , command ) ; } // commands . forEach ( command - > {
// executeSQL ( database , command ) ; |
public class DistributedCache { /** * Get the locally cached file or archive ; it could either be
* previously cached ( and valid ) or copy it from the { @ link FileSystem } now .
* @ param cache the cache to be localized , this should be specified as
* new URI ( hdfs : / / hostname : port / absolute _ path _ to ... | String key = getKey ( cache , conf , confFileStamp ) ; CacheStatus lcacheStatus ; Path localizedPath ; synchronized ( cachedArchives ) { lcacheStatus = cachedArchives . get ( key ) ; if ( lcacheStatus == null ) { // was never localized
Path uniqueParentDir = new Path ( subDir , String . valueOf ( random . nextLong ( ) ... |
public class StringUtils { /** * Split string by whitespace .
* @ param value string to split
* @ return list of tokens */
public static Collection < String > split ( final String value ) { } } | if ( value == null ) { return Collections . emptyList ( ) ; } final String [ ] tokens = value . trim ( ) . split ( "\\s+" ) ; return asList ( tokens ) ; |
public class CmsJspActionElement { /** * Returns all properties of the selected file . < p >
* Please see the description of the class { @ link org . opencms . jsp . CmsJspTagProperty } for
* valid options of the < code > file < / code > parameter . < p >
* @ param file the file ( or folder ) to look at for the p... | Map < String , String > props = new HashMap < String , String > ( ) ; if ( isNotInitialized ( ) ) { return props ; } try { props = CmsJspTagProperty . propertiesTagAction ( file , getRequest ( ) ) ; } catch ( Throwable t ) { handleException ( t ) ; } return props ; |
public class PropertyData { /** * Resolves the copy generator . */
public void resolveBuilderGen ( ) { } } | if ( getBean ( ) . isMutable ( ) ) { if ( ! getBean ( ) . isBuilderScopeVisible ( ) && ! getBean ( ) . isBeanStyleLightOrMinimal ( ) ) { return ; // no builder
} } if ( isDerived ( ) ) { builderGen = BuilderGen . NoBuilderGen . INSTANCE ; } else { BuilderGen builder = config . getBuilderGenerators ( ) . get ( getFieldT... |
public class JSTalkBackFilter { /** * Writes { @ link HttpServletResponse # SC _ NO _ CONTENT } to response and flushes the stream .
* This means that only header and empty body will be returned to the caller script .
* @ param response { @ link HttpServletResponse }
* @ throws IOException on errors */
private vo... | response . setStatus ( HttpServletResponse . SC_NO_CONTENT ) ; response . setContentType ( "image/gif" ) ; final PrintWriter out = response . getWriter ( ) ; out . flush ( ) ; |
public class JdonJavaSerializer { /** * Finds any matching setter . */
private Method findSetter ( Method [ ] methods , String getterName , Class < ? > arg ) { } } | String setterName = "set" + getterName . substring ( INT_VALUE ) ; for ( int i = 0 ; i < methods . length ; i ++ ) { Method method = methods [ i ] ; if ( ! method . getName ( ) . equals ( setterName ) ) { continue ; } if ( ! method . getReturnType ( ) . equals ( void . class ) ) { continue ; } Class < ? > [ ] params = ... |
public class Operations { /** * Get an operand as a numeric type .
* @ param op
* operand as String
* @ return Double value or null if op is not numeric */
private static Double getOperandAsNumeric ( String op ) { } } | Double d = null ; try { d = Double . valueOf ( op ) ; } catch ( Exception e ) { // Null is returned if not numeric .
} return d ; |
public class KubernetesClient { /** * Retrieves POD addresses for all services in the specified { @ code namespace } filtered by { @ code serviceLabel }
* and { @ code serviceLabelValue } .
* @ param serviceLabel label used to filter responses
* @ param serviceLabelValue label value used to filter responses
* @... | try { String param = String . format ( "labelSelector=%s=%s" , serviceLabel , serviceLabelValue ) ; String urlString = String . format ( "%s/api/v1/namespaces/%s/endpoints?%s" , kubernetesMaster , namespace , param ) ; return enrichWithPublicAddresses ( parseEndpointsList ( callGet ( urlString ) ) ) ; } catch ( RestCli... |
public class Calendar { /** * < strong > [ icu ] < / strong > Returns true if the given Calendar object is equivalent to this
* one . An equivalent Calendar will behave exactly as this one
* does , but it may be set to a different time . By contrast , for
* the equals ( ) method to return true , the other Calenda... | return this . getClass ( ) == other . getClass ( ) && isLenient ( ) == other . isLenient ( ) && getFirstDayOfWeek ( ) == other . getFirstDayOfWeek ( ) && getMinimalDaysInFirstWeek ( ) == other . getMinimalDaysInFirstWeek ( ) && getTimeZone ( ) . equals ( other . getTimeZone ( ) ) && getRepeatedWallTimeOption ( ) == oth... |
public class ResourceGroovyMethods { /** * Creates a buffered reader for this URL using the given encoding .
* @ param url a URL
* @ param parameters connection parameters
* @ param charset opens the stream with a specified charset
* @ return a BufferedReader for the URL
* @ throws MalformedURLException is th... | return new BufferedReader ( new InputStreamReader ( configuredInputStream ( parameters , url ) , charset ) ) ; |
public class Token { /** * for ( int i = 0 ; i < tokens . length ; i + + ) {
* if ( tokens [ i ] . schemaObjectIdentifier instanceof Expression ) {
* ColumnSchema column =
* ( ( Expression ) tokens [ i ] . schemaObjectIdentifier )
* . getColumn ( ) ;
* tokens [ i ] . schemaObjectIdentifier = column . getName ... | boolean wasDelimiter = true ; StringBuffer sb = new StringBuffer ( ) ; for ( int i = 0 ; i < statement . length ; i ++ ) { // when the previous statement is ' ) ' , there should be a blank before the non - delimiter statement .
if ( ! statement [ i ] . isDelimiter && ( ! wasDelimiter || ( i > 0 && ")" . equals ( statem... |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getBDDCOLOR ( ) { } } | if ( bddcolorEEnum == null ) { bddcolorEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 6 ) ; } return bddcolorEEnum ; |
public class LibertyCustomizeBindingOutInterceptor { /** * Customize the client properties .
* @ param message */
protected void customizeClientProperties ( Message message ) { } } | if ( null == configPropertiesSet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "There are no client properties." ) ; } return ; } Bus bus = message . getExchange ( ) . getBus ( ) ; if ( null == bus ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnab... |
public class BlockHeader { /** * Reads the header data from a block .
* @ param buffer block data
* @ param offset current offset into block data
* @ param postHeaderSkipBytes bytes to skip after reading the header
* @ return current BlockHeader instance */
public BlockHeader read ( byte [ ] buffer , int offset... | m_offset = offset ; System . arraycopy ( buffer , m_offset , m_header , 0 , 8 ) ; m_offset += 8 ; int nameLength = FastTrackUtility . getInt ( buffer , m_offset ) ; m_offset += 4 ; if ( nameLength < 1 || nameLength > 255 ) { throw new UnexpectedStructureException ( ) ; } m_name = new String ( buffer , m_offset , nameLe... |
public class ItemStreamLink { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . msgstore . impl . AbstractItemLink # xmlWriteChildrenOn ( com . ibm . ws . sib . msgstore . FormatBuffer ) */
protected void xmlWriteChildrenOn ( FormattedWriter writer ) throws IOException { } } | super . xmlWriteChildrenOn ( writer ) ; if ( null != _items ) { _items . xmlWriteChildrenOn ( writer , XML_ITEMS ) ; } if ( null != _itemStreams ) { _itemStreams . xmlWriteOn ( writer , XML_ITEM_STREAMS ) ; } if ( null != _referenceStreams ) { _referenceStreams . xmlWriteOn ( writer , XML_REFERENCE_STREAMS ) ; } |
public class CoreGraphAlgorithms { /** * fn union _ find < G : EdgeMapper > ( graph : & G , nodes : u32 ) {
* let mut root : Vec < u32 > = ( 0 . . nodes ) . collect ( ) ;
* let mut rank : Vec < u8 > = ( 0 . . nodes ) . map ( | _ | 0u8 ) . collect ( ) ;
* graph . map _ edges ( | mut x , mut y | {
* while x ! = r... | byte [ ] rank = new byte [ nodeCount ] ; int [ ] root = new int [ nodeCount ] ; for ( int nodeId = 0 ; nodeId < nodeCount ; nodeId ++ ) root [ nodeId ] = nodeId ; runProgram ( ( x , y ) -> { while ( x != root [ x ] ) x = root [ x ] ; while ( y != root [ y ] ) y = root [ y ] ; if ( x != y ) { if ( rank [ x ] >= rank [ y... |
public class JarEntry { /** * Reads the jar ' s manifest . */
private void loadManifest ( ) { } } | if ( _isManifestRead ) return ; synchronized ( this ) { if ( _isManifestRead ) return ; try { _manifest = _jarPath . getManifest ( ) ; if ( _manifest == null ) return ; Attributes attr = _manifest . getMainAttributes ( ) ; if ( attr != null ) addManifestPackage ( "" , attr ) ; Map < String , Attributes > entries = _man... |
public class Fingerprint { /** * Records that a build of a job has used this file . */
public synchronized void add ( @ Nonnull String jobFullName , int n ) throws IOException { } } | addWithoutSaving ( jobFullName , n ) ; save ( ) ; |
public class File { /** * Creates an empty temporary file using the given prefix and suffix as part
* of the file name . If { @ code suffix } is null , { @ code . tmp } is used . This
* method is a convenience method that calls
* { @ link # createTempFile ( String , String , File ) } with the third argument
* b... | return createTempFile ( prefix , suffix , null ) ; |
public class BootstrapDrawableFactory { /** * Creates arrow icon that depends on ExpandDirection
* @ param context context
* @ param width width of icon in pixels
* @ param height height of icon in pixels
* @ param color arrow color
* @ param expandDirection arrow direction
* @ return icon drawable */
priva... | Bitmap canvasBitmap = Bitmap . createBitmap ( width , height , Bitmap . Config . ARGB_8888 ) ; Canvas canvas = new Canvas ( canvasBitmap ) ; Paint paint = new Paint ( ) ; paint . setStyle ( Paint . Style . FILL_AND_STROKE ) ; paint . setStrokeWidth ( 1 ) ; paint . setColor ( color ) ; paint . setAntiAlias ( true ) ; Pa... |
public class PageShellInterceptor { /** * Renders the content before the backing component .
* @ param writer the writer to write to . */
protected void beforePaint ( final PrintWriter writer ) { } } | PageShell pageShell = Factory . newInstance ( PageShell . class ) ; pageShell . openDoc ( writer ) ; pageShell . writeHeader ( writer ) ; |
public class ParameterUtil { /** * Get parameter value from a string represenation using a pattern
* @ param parameterClass parameter class
* @ param value string value representation
* @ param pattern value pattern
* @ return parameter value from string representation using pattern
* @ throws Exception if st... | if ( pattern == null ) { return getParameterValueFromString ( parameterClass , value ) ; } else { if ( QueryParameter . DATE_VALUE . equals ( parameterClass ) || QueryParameter . TIME_VALUE . equals ( parameterClass ) || QueryParameter . TIMESTAMP_VALUE . equals ( parameterClass ) ) { SimpleDateFormat sdf = new SimpleD... |
public class JNRPEBuilder { /** * Builds the configured JNRPE instance .
* @ return the configured JNRPE instance */
public JNRPE build ( ) { } } | JNRPE jnrpe = new JNRPE ( pluginRepository , commandRepository , charset , acceptParams , acceptedHosts , maxAcceptedConnections , readTimeout , writeTimeout ) ; IJNRPEEventBus eventBus = jnrpe . getExecutionContext ( ) . getEventBus ( ) ; for ( Object obj : eventListeners ) { eventBus . register ( obj ) ; } return jnr... |
public class BinaryArrayWeakHeap { /** * { @ inheritDoc } */
@ Override @ LogarithmicTime ( amortized = true ) public K deleteMin ( ) { } } | if ( Constants . NOT_BENCHMARK && size == 0 ) { throw new NoSuchElementException ( ) ; } K result = array [ 0 ] ; size -- ; array [ 0 ] = array [ size ] ; array [ size ] = null ; if ( size > 1 ) { if ( comparator == null ) { fixdown ( 0 ) ; } else { fixdownWithComparator ( 0 ) ; } } if ( Constants . NOT_BENCHMARK ) { i... |
public class ContentHandlerImporter { /** * { @ inheritDoc } */
public void endDocument ( ) throws SAXException { } } | try { dataKeeper . save ( importer . getChanges ( ) ) ; } catch ( RepositoryException e ) { // e . printStackTrace ( ) ;
throw new SAXException ( e ) ; } catch ( IllegalStateException e ) { throw new SAXException ( e ) ; } |
public class MapEventPublisherImpl { /** * Publish the event to the specified listener { @ code registrations } if
* the event passes the filters specified by the { @ link FilteringStrategy } .
* The method uses the hashcode of the { @ code dataKey } to order the
* events in the event subsystem . This means that ... | EntryEventDataCache eventDataCache = filteringStrategy . getEntryEventDataCache ( ) ; int orderKey = pickOrderKey ( dataKey ) ; for ( EventRegistration registration : registrations ) { EventFilter filter = registration . getFilter ( ) ; // a filtering strategy determines whether the event must be published on the speci... |
public class Stylesheet { /** * Set the " xsl : attribute - set " property .
* @ see < a href = " http : / / www . w3 . org / TR / xslt # attribute - sets " > attribute - sets in XSLT Specification < / a >
* @ param attrSet ElemAttributeSet to add to the list of attribute sets */
public void setAttributeSet ( ElemA... | if ( null == m_attributeSets ) { m_attributeSets = new Vector ( ) ; } m_attributeSets . addElement ( attrSet ) ; |
public class DisconfCenterFile { /** * 配置文件的路径 */
public String getFilePath ( ) { } } | // 不放到classpath , 则文件路径根据 userDefineDownloadDir 来设置
if ( ! DisClientConfig . getInstance ( ) . enableLocalDownloadDirInClassPath ) { return OsUtil . pathJoin ( DisClientConfig . getInstance ( ) . userDefineDownloadDir , fileName ) ; } if ( targetDirPath != null ) { if ( targetDirPath . startsWith ( "/" ) ) { return OsU... |
public class PDBFileParser { /** * Handler for TURN lines
* < pre >
* COLUMNS DATA TYPE FIELD DEFINITION
* 1 - 6 Record name " TURN "
* 8 - 10 Integer seq Turn number ; starts with 1 and
* increments by one .
* 12 - 14 LString ( 3 ) turnId Turn identifier
* 16 - 18 Residue name initResName Residue name of... | if ( params . isHeaderOnly ( ) ) return ; if ( line . length ( ) < 36 ) { logger . info ( "TURN line has length under 36. Ignoring it." ) ; return ; } String initResName = line . substring ( 15 , 18 ) . trim ( ) ; String initChainId = line . substring ( 19 , 20 ) ; String initSeqNum = line . substring ( 20 , 24 ) . tri... |
public class MDWMessageCreator { /** * ( non - Javadoc )
* @ see
* org . springframework . jms . core . MessageCreator # createMessage ( javax . jms
* . Session ) */
@ Override public Message createMessage ( Session session ) throws JMSException { } } | Message message = session . createTextMessage ( requestMessage ) ; if ( correlationId != null ) message . setJMSCorrelationID ( correlationId ) ; if ( replyQueue != null ) { message . setJMSReplyTo ( replyQueue ) ; } if ( delaySeconds > 0 ) { ApplicationContext . getJmsProvider ( ) . setMessageDelay ( null , message , ... |
public class SSLUtils { /** * The purpose of this method is to take two SSL engines and have them do an
* SSL handshake . If an exception is thrown , then the handshake was not successful .
* @ param clientEngine
* @ param serverEngine
* @ throws SSLException if handshake fails */
public static void handleHands... | final boolean bTrace = TraceComponent . isAnyTracingEnabled ( ) ; if ( bTrace && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "handleHandshake" ) ; } if ( clientEngine == null || serverEngine == null ) { throw new SSLException ( "Null engine found: engine1=" + clientEngine + ", engine2=" + serverEngine ) ; } SSLEngine... |
public class DelegatedClientFactory { /** * Configure OAuth client .
* @ param properties the properties */
protected void configureOAuth20Client ( final Collection < BaseClient > properties ) { } } | val index = new AtomicInteger ( ) ; pac4jProperties . getOauth2 ( ) . stream ( ) . filter ( oauth -> StringUtils . isNotBlank ( oauth . getId ( ) ) && StringUtils . isNotBlank ( oauth . getSecret ( ) ) ) . forEach ( oauth -> { val client = new GenericOAuth20Client ( ) ; client . setKey ( oauth . getId ( ) ) ; client . ... |
public class LongBitSet { /** * this = this AND NOT other */
void andNot ( LongBitSet other ) { } } | int pos = Math . min ( numWords , other . numWords ) ; while ( -- pos >= 0 ) { bits [ pos ] &= ~ other . bits [ pos ] ; } |
public class AmazonElastiCacheClient { /** * Dynamically decreases the number of replics in a Redis ( cluster mode disabled ) replication group or the number of
* replica nodes in one or more node groups ( shards ) of a Redis ( cluster mode enabled ) replication group . This
* operation is performed with no cluster... | request = beforeClientExecution ( request ) ; return executeDecreaseReplicaCount ( request ) ; |
public class YearWeek { /** * Obtains the current year - week from the specified clock .
* This will query the specified clock to obtain the current year - week .
* Using this method allows the use of an alternate clock for testing .
* The alternate clock may be introduced using { @ link Clock dependency injectio... | final LocalDate now = LocalDate . now ( clock ) ; // called once
return YearWeek . of ( now . get ( WEEK_BASED_YEAR ) , now . get ( WEEK_OF_WEEK_BASED_YEAR ) ) ; |
public class AbstractLoggerInjector { /** * { @ inheritDoc } */
public final void injectMembers ( Object target ) { } } | if ( isFinal ( field . getModifiers ( ) ) ) { return ; } try { if ( field . get ( target ) == null ) { field . set ( target , createLogger ( target . getClass ( ) ) ) ; } } catch ( Exception e ) { throw new ProvisionException ( format ( "Impossible to set logger for field '%s', see nested exception: %s" , field , e . g... |
public class InternalTimersSnapshotReaderWriters { public static < K , N > InternalTimersSnapshotWriter getWriterForVersion ( int version , InternalTimersSnapshot < K , N > timersSnapshot , TypeSerializer < K > keySerializer , TypeSerializer < N > namespaceSerializer ) { } } | switch ( version ) { case NO_VERSION : return new InternalTimersSnapshotWriterPreVersioned < > ( timersSnapshot , keySerializer , namespaceSerializer ) ; case 1 : return new InternalTimersSnapshotWriterV1 < > ( timersSnapshot , keySerializer , namespaceSerializer ) ; case InternalTimerServiceSerializationProxy . VERSIO... |
public class ClientInitializer { /** * Returns the annotation map for the specified element . */
public static PropertyMap getAnnotationMap ( ControlBeanContext cbc , AnnotatedElement annotElem ) { } } | if ( cbc == null ) return new AnnotatedElementMap ( annotElem ) ; return cbc . getAnnotationMap ( annotElem ) ; |
public class RAAnnotationProcessor { /** * Create a RaConnector xml object and all its associated xml objects
* that represents the combined ra . xml , wlp - ra . xml , and annotations , if any
* that are present in the rar file .
* @ return RaConnector that represents the resource adapter instance
* @ throws R... | final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; String jcaVersion = getAdapterVersion ( deploymentDescriptor ) ; boolean processAnno = checkProcessAnnotations ( deploymentDescriptor , jcaVersion ) ; if ( ! processAnno ) { if ( trace && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Skip annotation... |
public class Tile { /** * Defines if the date of the clock will be drawn .
* @ param VISIBLE */
public void setDateVisible ( final boolean VISIBLE ) { } } | if ( null == dateVisible ) { _dateVisible = VISIBLE ; fireTileEvent ( VISIBILITY_EVENT ) ; } else { dateVisible . set ( VISIBLE ) ; } |
public class LoggingManager { /** * Add an file appender for a device
* @ param fileName
* @ param deviceName
* @ throws DevFailed */
public void addFileAppender ( final String fileName , final String deviceName ) throws DevFailed { } } | if ( rootLoggerBack != null ) { logger . debug ( "add file appender of {} in {}" , deviceName , fileName ) ; final String deviceNameLower = deviceName . toLowerCase ( Locale . ENGLISH ) ; final File f = new File ( fileName ) ; if ( ! f . exists ( ) ) { try { f . createNewFile ( ) ; } catch ( final IOException e ) { thr... |
public class DITypeInfo { /** * Retrieves whether values of this type have a fixed precision and
* scale . < p >
* @ return whether values of this type have a fixed
* precision and scale . */
Boolean isFixedPrecisionScale ( ) { } } | switch ( type ) { case Types . SQL_BIGINT : case Types . SQL_DECIMAL : case Types . SQL_DOUBLE : case Types . SQL_FLOAT : case Types . SQL_INTEGER : case Types . SQL_NUMERIC : case Types . SQL_REAL : case Types . SQL_SMALLINT : case Types . TINYINT : return Boolean . FALSE ; default : return null ; } |
public class Ec2MachineConfigurator { /** * Checks whether a VM is started or not ( which is stronger than { @ link # checkVmIsKnown ( ) } ) .
* @ return true if the VM is started , false otherwise */
private boolean checkVmIsStarted ( ) { } } | DescribeInstancesRequest dis = new DescribeInstancesRequest ( ) ; dis . setInstanceIds ( Collections . singletonList ( this . machineId ) ) ; DescribeInstancesResult disresult = this . ec2Api . describeInstances ( dis ) ; // Obtain availability zone ( for later use , eg . volume attachment ) .
// Necessary if no availa... |
public class HttpUtilities { /** * Obtain newline - delimited headers from response
* @ param response HttpServletResponse to scan
* @ return newline - delimited headers */
public static String getHeaders ( HttpServletResponse response ) { } } | String headerString = "" ; Collection < String > headerNames = response . getHeaderNames ( ) ; for ( String headerName : headerNames ) { // there may be multiple headers per header name
for ( String headerValue : response . getHeaders ( headerName ) ) { if ( headerString . length ( ) != 0 ) { headerString += "\n" ; } h... |
public class Sorting { /** * Hybrid sorting mechanism similar to Introsort by David Musser . Uses quicksort ' s
* partitioning mechanism recursively until the resulting array is small or the
* recursion is too deep , and then use insertion sort for the rest .
* This is the same basic algorithm used by the GNU Sta... | hybridSort ( a , 0 , a . length - 1 , cmp , log2 ( a . length ) * 2 ) ; |
public class RowKey { /** * Checks a row key to determine if it contains the metric UID . If salting is
* enabled , we skip the salt bytes .
* @ param metric The metric UID to match
* @ param row _ key The row key to match on
* @ return 0 if the two arrays are identical , otherwise the difference
* between th... | int idx = Const . SALT_WIDTH ( ) ; for ( int i = 0 ; i < metric . length ; i ++ , idx ++ ) { if ( metric [ i ] != row_key [ idx ] ) { return ( metric [ i ] & 0xFF ) - ( row_key [ idx ] & 0xFF ) ; // " promote " to unsigned .
} } return 0 ; |
public class QueryRpc { /** * Parses a query string legacy style query from the URI
* @ param tsdb The TSDB we belong to
* @ param query The HTTP Query for parsing
* @ param expressions A list of parsed expression trees filled from the URI .
* If this is null , it means any expressions in the URI will be skippe... | final TSQuery data_query = new TSQuery ( ) ; data_query . setStart ( query . getRequiredQueryStringParam ( "start" ) ) ; data_query . setEnd ( query . getQueryStringParam ( "end" ) ) ; if ( query . hasQueryStringParam ( "padding" ) ) { data_query . setPadding ( true ) ; } if ( query . hasQueryStringParam ( "no_annotati... |
public class BaseFunction { /** * Make value as DontEnum , DontDelete , ReadOnly
* prototype property of this Function object */
public void setImmunePrototypeProperty ( Object value ) { } } | if ( ( prototypePropertyAttributes & READONLY ) != 0 ) { throw new IllegalStateException ( ) ; } prototypeProperty = ( value != null ) ? value : UniqueTag . NULL_VALUE ; prototypePropertyAttributes = DONTENUM | PERMANENT | READONLY ; |
public class RuleTerminalNode { @ SuppressWarnings ( "unchecked" ) public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } } | super . readExternal ( in ) ; rule = ( RuleImpl ) in . readObject ( ) ; subrule = ( GroupElement ) in . readObject ( ) ; subruleIndex = in . readInt ( ) ; previousTupleSinkNode = ( LeftTupleSinkNode ) in . readObject ( ) ; nextTupleSinkNode = ( LeftTupleSinkNode ) in . readObject ( ) ; salienceDeclarations = ( Declarat... |
public class MembershipManager { /** * Invoked on the master to send the member list ( see { @ link MembersUpdateOp } ) to non - master nodes . */
private void sendMemberListToOthers ( ) { } } | if ( ! clusterService . isMaster ( ) || ! clusterService . isJoined ( ) || clusterService . getClusterJoinManager ( ) . isMastershipClaimInProgress ( ) ) { if ( logger . isFineEnabled ( ) ) { logger . fine ( "Cannot publish member list to cluster. Is-master: " + clusterService . isMaster ( ) + ", joined: " + clusterSer... |
public class AbstractSpecWithPrimaryKey { /** * Sets the primary key . */
public AbstractSpecWithPrimaryKey < T > withPrimaryKey ( PrimaryKey primaryKey ) { } } | if ( primaryKey == null ) this . keyComponents = null ; else { this . keyComponents = primaryKey . getComponents ( ) ; } return this ; |
public class SPX { /** * / * [ deutsch ]
* < p > Implementierungsmethode des Interface { @ link Externalizable } . < / p >
* < p > Das erste Byte enth & auml ; lt den Typ des zu serialisierenden Objekts .
* Danach folgen die Daten - Bits in einer vielleicht bit - komprimierten Darstellung . < / p >
* @ serialDa... | out . writeByte ( this . type ) ; switch ( this . type ) { case FRENCH_REV : this . writeFrenchRev ( out ) ; break ; default : throw new InvalidClassException ( "Unsupported calendar type." ) ; } |
public class ContextUtils { /** * Get the { @ link android . app . DownloadManager } service for this context .
* @ param context the context .
* @ return the { @ link android . app . DownloadManager } */
@ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static DownloadManager getDownloadManager ( Context ... | return ( DownloadManager ) context . getSystemService ( Context . DOWNLOAD_SERVICE ) ; |
public class NameResolverRegistry { /** * Returns the default registry that loads providers via the Java service loader mechanism . */
public static synchronized NameResolverRegistry getDefaultRegistry ( ) { } } | if ( instance == null ) { List < NameResolverProvider > providerList = ServiceProviders . loadAll ( NameResolverProvider . class , getHardCodedClasses ( ) , NameResolverProvider . class . getClassLoader ( ) , new NameResolverPriorityAccessor ( ) ) ; if ( providerList . isEmpty ( ) ) { logger . warning ( "No NameResolve... |
public class NameAllocator { /** * Retrieve a name created with { @ link # newName ( String , Object ) } . */
public String get ( Object tag ) { } } | String result = tagToName . get ( tag ) ; if ( result == null ) { throw new IllegalArgumentException ( "unknown tag: " + tag ) ; } return result ; |
public class SnackBar { /** * Set the horizontal padding between this SnackBar and it ' s text and button .
* @ param padding
* @ return This SnackBar for chaining methods . */
public SnackBar horizontalPadding ( int padding ) { } } | mText . setPadding ( padding , mText . getPaddingTop ( ) , padding , mText . getPaddingBottom ( ) ) ; mAction . setPadding ( padding , mAction . getPaddingTop ( ) , padding , mAction . getPaddingBottom ( ) ) ; return this ; |
public class VariableNeighbourhoodSearch { /** * Performs a step of VNS . One step consists of :
* < ol >
* < li > Shaking using the current shaking neighbourhood < / li >
* < li > Modification using a new instance of the local search algorithm < / li >
* < li >
* Acceptance of modified solution if it is a gl... | // cyclically reset s to zero if no more shaking neighbourhoods are available
if ( s >= getNeighbourhoods ( ) . size ( ) ) { s = 0 ; } // create copy of current solution to shake and modify by applying local search procedure
SolutionType shakedSolution = Solution . checkedCopy ( getCurrentSolution ( ) ) ; // 1 ) SHAKIN... |
public class AWSBackupClient { /** * Returns the AWS resource types supported by AWS Backup .
* @ param getSupportedResourceTypesRequest
* @ return Result of the GetSupportedResourceTypes operation returned by the service .
* @ throws ServiceUnavailableException
* The request failed due to a temporary failure o... | request = beforeClientExecution ( request ) ; return executeGetSupportedResourceTypes ( request ) ; |
public class ByteCodeParser { /** * Parses a 64 - bit int . */
long readLong ( ) throws IOException { } } | return ( ( ( long ) _is . read ( ) << 56 ) | ( ( long ) _is . read ( ) << 48 ) | ( ( long ) _is . read ( ) << 40 ) | ( ( long ) _is . read ( ) << 32 ) | ( ( long ) _is . read ( ) << 24 ) | ( ( long ) _is . read ( ) << 16 ) | ( ( long ) _is . read ( ) << 8 ) | ( ( long ) _is . read ( ) ) ) ; |
public class PipelineSummaryMarshaller { /** * Marshall the given parameter object . */
public void marshall ( PipelineSummary pipelineSummary , ProtocolMarshaller protocolMarshaller ) { } } | if ( pipelineSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( pipelineSummary . getPipelineName ( ) , PIPELINENAME_BINDING ) ; protocolMarshaller . marshall ( pipelineSummary . getReprocessingSummaries ( ) , REPROCESSINGSUMMARIES_B... |
public class AbstractCache { /** * Reads a value from the cache by probing the in - memory cache , and if enabled and the in - memory
* probe was a miss , the disk cache .
* @ param elementKey
* the cache key
* @ return the cached value , or null if element was not cached */
@ SuppressWarnings ( "unchecked" ) p... | KeyT key = ( KeyT ) elementKey ; ValT value = cache . get ( key ) ; if ( value != null ) { // memory hit
Log . d ( name , "MEM cache hit for " + key . toString ( ) ) ; return value ; } // memory miss , try reading from disk
File file = getFileForKey ( key ) ; if ( file . exists ( ) ) { // if file older than expirationI... |
public class HierarchicalTransformer { /** * Computes an horizontal margin for a given node .
* We used to have a static horizontal margin , but images were
* truncated for long names . See roboconf - platform # 315
* @ param input a node ( can be null )
* @ return a positive integer */
private static int compu... | int basis = MIN_H_MARGIN ; if ( input != null && input . getName ( ) . length ( ) > 17 ) { // Beyond 17 characters , we give 3 pixels for every new characters .
basis += 3 * ( input . getName ( ) . length ( ) - 17 ) ; } return basis ; |
public class CreatePipelineRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreatePipelineRequest createPipelineRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createPipelineRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createPipelineRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( createPipelineRequest . getUniqueId ( ) , UNIQUEID_BINDING ) ; protocolMarsh... |
public class FileUtil { /** * Delete the file or directory recursively .
* @ param path The file or directory path .
* @ throws IOException If delete failed at some point . */
public static void deleteRecursively ( Path path ) throws IOException { } } | if ( Files . isDirectory ( path ) ) { Files . list ( path ) . forEach ( file -> { try { deleteRecursively ( file ) ; } catch ( IOException e ) { throw new UncheckedIOException ( e . getMessage ( ) , e ) ; } } ) ; } Files . delete ( path ) ; |
public class Configuration { /** * Gets the short value for < code > key < / code > or < code > defaultValue < / code > if not found .
* @ param key key to get value for
* @ param defaultValue default value if key not found
* @ return value or < code > defaultValue < / code > if not found */
public short getShort... | if ( containsKey ( key ) ) { return Short . parseShort ( get ( key ) ) ; } else { return defaultValue ; } |
public class CmsJspVfsAccessBean { /** * Returns a map that lazily calculates links to files in the OpenCms VFS ,
* which have been adjusted according to the web application path and the
* OpenCms static export rules . < p >
* Please note that the target is always assumed to be in the OpenCms VFS , so you can ' t... | if ( m_links == null ) { // create lazy map only on demand
m_links = CmsCollectionsGenericWrapper . createLazyMap ( new CmsVfsLinkTransformer ( ) ) ; } return m_links ; |
public class DatabaseClientSnippets { /** * [ VARIABLE my _ singer _ id ] */
public Timestamp singleUseReadOnlyTransaction ( long singerId ) { } } | // [ START singleUseReadOnlyTransaction ]
String column = "FirstName" ; ReadOnlyTransaction txn = dbClient . singleUseReadOnlyTransaction ( ) ; Struct row = txn . readRow ( "Singers" , Key . of ( singerId ) , Collections . singleton ( column ) ) ; row . getString ( column ) ; Timestamp timestamp = txn . getReadTimestam... |
public class LearnTool { /** * 公司名称学习 .
* @ param graph */
public void learn ( Graph graph , SplitWord splitWord , Forest ... forests ) { } } | this . splitWord = splitWord ; this . forests = forests ; // 亚洲人名识别
if ( isAsianName ) { findAsianPerson ( graph ) ; } // 外国人名识别
if ( isForeignName ) { findForeignPerson ( graph ) ; } |
public class CLI { /** * Set up the TCP socket for annotation . */
public final void server ( ) { } } | String port = parsedArguments . getString ( "port" ) ; String model = parsedArguments . getString ( MODEL ) ; String lexer = parsedArguments . getString ( "lexer" ) ; String dictTag = parsedArguments . getString ( "dictTag" ) ; String dictPath = parsedArguments . getString ( "dictPath" ) ; String clearFeatures = parsed... |
public class PDBDomainProvider { /** * Handles fetching and processing REST requests . The actual XML parsing is handled
* by the handler , which is also in charge of storing interesting data .
* @ param url REST request
* @ param handler SAX XML parser
* @ throws SAXException
* @ throws IOException
* @ thr... | // Fetch XML stream
URL u = new URL ( url ) ; InputStream response = URLConnectionTools . getInputStream ( u ) ; InputSource xml = new InputSource ( response ) ; // Parse XML
SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; SAXParser saxParser = factory . newSAXParser ( ) ; saxParser . parse ( xml , hand... |
public class FragmentManagerUtils { /** * Find a fragment that is under { @ link android . app . FragmentManager } ' s control by the id .
* @ param manager the fragment manager .
* @ param id the fragment id .
* @ param < F > the concrete fragment class parameter .
* @ return the fragment . */
@ SuppressWarnin... | return ( F ) manager . findFragmentById ( id ) ; |
public class ModeUtil { /** * translate a string mode ( 777 or drwxrwxrwx to a octal value )
* @ param strMode
* @ return */
public static int toOctalMode ( String strMode ) throws IOException { } } | strMode = strMode . trim ( ) . toLowerCase ( ) ; if ( strMode . length ( ) == 9 || strMode . length ( ) == 10 ) return _toOctalMode ( strMode ) ; if ( strMode . length ( ) <= 4 && strMode . length ( ) > 0 ) return Integer . parseInt ( strMode , 8 ) ; throw new IOException ( "can't translate [" + strMode + "] to a mode ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.