signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class BpsimFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public String convertResultTypeToString ( EDataType eDataType , Object instanceValue ) { } }
return instanceValue == null ? null : instanceValue . toString ( ) ;
public class Jenkins { /** * Serves static resources placed along with Jelly view files . * This method can serve a lot of files , so care needs to be taken * to make this method secure . It ' s not clear to me what ' s the best * strategy here , though the current implementation is based on * file extensions ....
String path = req . getRestOfPath ( ) ; // cut off the " . . . " portion of / resources / . . . / path / to / file // as this is only used to make path unique ( which in turn // allows us to set a long expiration date path = path . substring ( path . indexOf ( '/' , 1 ) + 1 ) ; int idx = path . lastIndexOf ( '.' ) ; St...
public class CommercePriceEntryModelImpl { /** * Converts the soap model instances into normal model instances . * @ param soapModels the soap model instances to convert * @ return the normal model instances */ public static List < CommercePriceEntry > toModels ( CommercePriceEntrySoap [ ] soapModels ) { } }
if ( soapModels == null ) { return null ; } List < CommercePriceEntry > models = new ArrayList < CommercePriceEntry > ( soapModels . length ) ; for ( CommercePriceEntrySoap soapModel : soapModels ) { models . add ( toModel ( soapModel ) ) ; } return models ;
public class PackagesReport { /** * SetupSFields Method . */ public void setupSFields ( ) { } }
this . getRecord ( Part . PART_FILE ) . getField ( Part . DESCRIPTION ) . setupDefaultView ( this . getNextLocation ( ScreenConstants . NEXT_LOGICAL , ScreenConstants . ANCHOR_DEFAULT ) , this , ScreenConstants . DEFAULT_DISPLAY ) ; this . getRecord ( Part . PART_FILE ) . getField ( Part . KIND ) . setupDefaultView ( t...
public class ApiOvhOrder { /** * Get allowed durations for ' ipMigration ' option * REST : GET / order / dedicated / server / { serviceName } / ipMigration * @ param ip [ required ] The IP to move to this server * @ param token [ required ] IP migration token * @ param serviceName [ required ] The internal name...
String qPath = "/order/dedicated/server/{serviceName}/ipMigration" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "ip" , ip ) ; query ( sb , "token" , token ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t1 ) ;
public class DOMConfigurator { /** * Used internally to parse appenders by IDREF name . */ protected Appender findAppenderByName ( Document doc , String appenderName ) { } }
Appender appender = ( Appender ) appenderBag . get ( appenderName ) ; if ( appender != null ) { return appender ; } else { // Doesn ' t work on DOM Level 1 : // Element element = doc . getElementById ( appenderName ) ; // Endre ' s hack : Element element = null ; NodeList list = doc . getElementsByTagName ( "appender" ...
public class UniversalJdbcQueue { /** * { @ inheritDoc } */ @ Override protected UniversalIdIntQueueMessage readFromQueueStorage ( Connection conn ) { } }
Map < String , Object > dbRow = getJdbcHelper ( ) . executeSelectOne ( conn , SQL_READ_FROM_QUEUE ) ; if ( dbRow != null ) { UniversalIdIntQueueMessage msg = new UniversalIdIntQueueMessage ( ) ; return msg . fromMap ( dbRow ) ; } return null ;
public class EntityIntrospector { /** * Processes the Key field and builds the entity metadata . * @ param field * the Key field */ private void processKeyField ( Field field ) { } }
String fieldName = field . getName ( ) ; Class < ? > type = field . getType ( ) ; if ( ! type . equals ( DatastoreKey . class ) ) { String message = String . format ( "Invalid type, %s, for Key field %s in class %s. " , type , fieldName , entityClass ) ; throw new EntityManagerException ( message ) ; } KeyMetadata keyM...
public class CommerceTierPriceEntryUtil { /** * Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = & # 63 ; and minQuantity & le ; & # 63 ; . * @ param commercePriceEntryId the commerce price entry ID * @ param minQuantity the min quantity * @ param orderByComparator the c...
return getPersistence ( ) . fetchByC_LtM_First ( commercePriceEntryId , minQuantity , orderByComparator ) ;
public class IntentUtils { /** * Pick contact from phone book * @ param scope You can restrict selection by passing required content type . Examples : * < code > < pre > * / / Select only from users with emails * IntentUtils . pickContact ( ContactsContract . CommonDataKinds . Email . CONTENT _ TYPE ) ; * / /...
Intent intent ; if ( isSupportsContactsV2 ( ) ) { intent = new Intent ( Intent . ACTION_PICK , Uri . parse ( "content://com.android.contacts/contacts" ) ) ; } else { intent = new Intent ( Intent . ACTION_PICK , Contacts . People . CONTENT_URI ) ; } if ( ! TextUtils . isEmpty ( scope ) ) { intent . setType ( scope ) ; }...
public class ChainedProperty { /** * Returns true if any property in the chain is derived . * @ see com . amazon . carbonado . Derived * @ since 1.2 */ public boolean isDerived ( ) { } }
if ( mPrime . isDerived ( ) ) { return true ; } if ( mChain != null ) { for ( StorableProperty < ? > prop : mChain ) { if ( prop . isDerived ( ) ) { return true ; } } } return false ;
public class EffectUtil { /** * Prompts the user for a value that represents a fixed number of options . * All options are strings . * @ param options The first array has an entry for each option . Each entry is either a String [ 1 ] that is both the display value * and actual value , or a String [ 2 ] whose firs...
return new DefaultValue ( name , currentValue . toString ( ) ) { public void showDialog ( ) { int selectedIndex = - 1 ; DefaultComboBoxModel model = new DefaultComboBoxModel ( ) ; for ( int i = 0 ; i < options . length ; i ++ ) { model . addElement ( options [ i ] [ 0 ] ) ; if ( getValue ( i ) . equals ( currentValue )...
public class FullFeaturePhase { /** * { @ inheritDoc } */ @ Override public final boolean write ( final ITask task , final Session session , final ByteBuffer src , final int logicalBlockAddress , final long length ) throws Exception { } }
if ( src . remaining ( ) < length ) { throw new IllegalArgumentException ( "Source buffer is too small. Buffer size: " + src . remaining ( ) + " Expected: " + length ) ; } int startAddress = logicalBlockAddress ; final long blockSize = session . getBlockSize ( ) ; int totalBlocks = ( int ) Math . ceil ( length / ( doub...
public class KeyUpdateCollection { /** * Includes the given { @ link BucketUpdate . KeyUpdate } into this collection . * If we get multiple updates for the same key , only the one with highest version will be kept . Due to compaction , * it is possible that a lower version of a Key will end up after a higher versio...
val existing = this . updates . get ( update . getKey ( ) ) ; if ( existing == null || update . supersedes ( existing ) ) { this . updates . put ( update . getKey ( ) , update ) ; } // Update remaining counters , regardless of whether we considered this update or not . this . totalUpdateCount . incrementAndGet ( ) ; lo...
public class LogManager { /** * get a list of whitespace separated classnames from a property . */ private String [ ] parseClassNames ( String propertyName ) { } }
String hands = getProperty ( propertyName ) ; if ( hands == null ) { return new String [ 0 ] ; } hands = hands . trim ( ) ; int ix = 0 ; Vector < String > result = new Vector < > ( ) ; while ( ix < hands . length ( ) ) { int end = ix ; while ( end < hands . length ( ) ) { if ( Character . isWhitespace ( hands . charAt ...
public class LocalizationActivityDelegate { /** * If yes , bundle will obe remove and set boolean flag to " true " . */ private void checkBeforeLocaleChanging ( ) { } }
boolean isLocalizationChanged = activity . getIntent ( ) . getBooleanExtra ( KEY_ACTIVITY_LOCALE_CHANGED , false ) ; if ( isLocalizationChanged ) { this . isLocalizationChanged = true ; activity . getIntent ( ) . removeExtra ( KEY_ACTIVITY_LOCALE_CHANGED ) ; }
public class Client { /** * Returns a cursor of datapoints specified by series . * < p > The system default timezone is used for the returned DateTimes . * @ param series The series * @ param interval An interval of time for the query ( start / end datetimes ) * @ return A Cursor of DataPoints . The cursor . it...
return readDataPoints ( series , interval , DateTimeZone . getDefault ( ) , null , null ) ;
public class SessionMonitor { /** * TO DO - - Use StoreCallback instead of SessionEventDispatcher ? ? */ @ ProbeAtEntry @ ProbeSite ( clazz = "com.ibm.ws.session.SessionEventDispatcher" , method = "sessionLiveCountInc" , args = "java.lang.Object" ) public void IncrementLiveCount ( @ Args Object [ ] myargs ) { } }
if ( tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "IncrementLiveCount" ) ; } if ( myargs == null ) { if ( tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "IncrementLiveCount" , "Args list is null" ) ; } return ; } ISession session = ( ISession ) myargs [ 0 ] ; if ( session == null ) { if ( tc . isEntryEnabled ( ) ) { Tr ...
public class SetUtilities { /** * Selects a random subset of a specific size from a given set ( uniformly distributed ) . * Applies a full scan algorithm that iterates once through the given set and selects each item with probability * ( # remaining to select ) / ( # remaining to scan ) . It can be proven that this...
// check size if ( size < 0 || size > set . size ( ) ) { throw new IllegalArgumentException ( "Error in SetUtilities: desired subset size should be a number in [0,|set|]." ) ; } // remaining number of items to select int remainingToSelect = size ; // remaining number of candidates to consider int remainingToScan = set ...
public class filterpostbodyinjection { /** * Use this API to fetch all the filterpostbodyinjection resources that are configured on netscaler . */ public static filterpostbodyinjection get ( nitro_service service ) throws Exception { } }
filterpostbodyinjection obj = new filterpostbodyinjection ( ) ; filterpostbodyinjection [ ] response = ( filterpostbodyinjection [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ;
public class TopHints { /** * Adds a resource collection with execution hints . */ public void add ( ResourceCollection rc ) { } }
if ( rc instanceof FileSet ) { FileSet fs = ( FileSet ) rc ; fs . setProject ( getProject ( ) ) ; } resources . add ( rc ) ;
public class Parameter { /** * Creates a map of all possible parameter names to their corresponding object . No two parameters may have the same name . * @ param params the list of parameters to create a map for * @ return a map of string names to their parameters * @ throws RuntimeException if two parameters hav...
Map < String , Parameter > map = new HashMap < String , Parameter > ( params . size ( ) ) ; for ( Parameter param : params ) { if ( map . put ( param . getASCIIName ( ) , param ) != null ) throw new RuntimeException ( "Name collision, two parameters use the name '" + param . getASCIIName ( ) + "'" ) ; if ( ! param . ge...
public class SDCA { /** * Sets the regularization term , where larger values indicate a larger * regularization penalty . * @ param lambda the positive regularization term */ @ Parameter . WarmParameter ( prefLowToHigh = false ) public void setLambda ( double lambda ) { } }
if ( lambda <= 0 || Double . isInfinite ( lambda ) || Double . isNaN ( lambda ) ) throw new IllegalArgumentException ( "Regularization term lambda must be a positive value, not " + lambda ) ; this . lambda = lambda ;
public class ReportRequest { /** * Gets map which property is an object and what type of object . * @ return Collection of field name - field type pairs . */ @ Override public Map < String , Type > getSubObjects ( ) { } }
Map < String , Type > result = super . getSubObjects ( ) ; result . put ( "Filters" , FilterReports . class ) ; return result ;
public class Utils { /** * PostProcessなどのメソッドを実行する 。 * < p > メソッドの引数が既知のものであれば 、 インスタンスを設定する 。 * @ param processObj 実行対象の処理が埋め込まれているオブジェクト 。 * @ param method 実行対象のメソッド情報 * @ param beanObj 処理対象のBeanオブジェクト 。 * @ param sheet シート情報 * @ param config 共通設定 * @ param errors エラー情報 * @ param processCa...
final Class < ? > [ ] paramTypes = method . getParameterTypes ( ) ; final Object [ ] paramValues = new Object [ paramTypes . length ] ; for ( int i = 0 ; i < paramTypes . length ; i ++ ) { if ( Sheet . class . isAssignableFrom ( paramTypes [ i ] ) ) { paramValues [ i ] = sheet ; } else if ( Configuration . class . isAs...
public class BasicAgigaSentence { /** * / * ( non - Javadoc ) * @ see edu . jhu . hltcoe . sp . data . depparse . AgigaSentence # getAgigaDeps ( edu . jhu . hltcoe . sp . data . depparse . DependencyForm ) */ public List < AgigaTypedDependency > getAgigaDeps ( DependencyForm form ) { } }
List < AgigaTypedDependency > agigaDeps ; if ( form == DependencyForm . BASIC_DEPS ) { agigaDeps = basicDeps ; } else if ( form == DependencyForm . COL_DEPS ) { agigaDeps = colDeps ; } else if ( form == DependencyForm . COL_CCPROC_DEPS ) { agigaDeps = colCcprocDeps ; } else { throw new IllegalStateException ( "Unsuppor...
public class ResampleOp { /** * round ( ) * Round an FP value to its closest int representation . * General routine ; ideally belongs in general math lib file . */ static int round ( double d ) { } }
// NOTE : This code seems to be faster than Math . round ( double ) . . . // Version that uses no function calls at all . int n = ( int ) d ; double diff = d - ( double ) n ; if ( diff < 0 ) { diff = - diff ; } if ( diff >= 0.5 ) { if ( d < 0 ) { n -- ; } else { n ++ ; } } return n ;
public class GetConfigRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetConfigRequest getConfigRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getConfigRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getConfigRequest . getClientArn ( ) , CLIENTARN_BINDING ) ; protocolMarshaller . marshall ( getConfigRequest . getClientVersion ( ) , CLIENTVERSION_BINDING ) ; protocol...
public class JQMNavBar { /** * Restore the button ' s active state each time the page is shown while it exists in the DOM . */ @ UiChild ( limit = 1 , tagname = "buttonActivePersist" ) public void addActivePersist ( final JQMButton button ) { } }
if ( button == null ) return ; addActive ( button ) ; button . getElement ( ) . addClassName ( "ui-state-persist" ) ;
public class JProperties { /** * < p > Returns the real value associated with { @ code key } in the * properties referenced by { @ code properties } . < / p > * @ param properties The loaded properties . * @ param key The requested key . * @ return The value associated with the key , parsed as an real . * @ t...
Objects . requireNonNull ( properties , "Properties" ) ; Objects . requireNonNull ( key , "Key" ) ; final String text = getString ( properties , key ) ; return parseReal ( key , text ) ;
public class LBFGS_port { /** * int * brackt */ private static StatusCode update_trial_interval ( UpdVals uv ) { } }
double x = uv . x ; double fx = uv . fx ; double dx = uv . dx ; double y = uv . y ; double fy = uv . fy ; double dy = uv . dy ; double t = uv . t ; double ft = uv . ft ; double dt = uv . dt ; double tmin = uv . tmin ; double tmax = uv . tmax ; int brackt = uv . brackt ; int bound ; boolean dsign = fsigndiff ( dt , dx )...
public class InvoiceProcessApplication { /** * In a @ PostDeploy Hook you can interact with the process engine and access * the processes the application has deployed . */ @ PostDeploy public void startFirstProcess ( ProcessEngine processEngine ) { } }
createUsers ( processEngine ) ; // enable metric reporting ProcessEngineConfigurationImpl processEngineConfiguration = ( ProcessEngineConfigurationImpl ) processEngine . getProcessEngineConfiguration ( ) ; processEngineConfiguration . setDbMetricsReporterActivate ( true ) ; processEngineConfiguration . getDbMetricsRepo...
public class TextMateGenerator2 { /** * Generate the rules for the literals . * @ param literals the literals . * @ return the rules . */ protected List < Map < String , ? > > generateLiterals ( Set < String > literals ) { } }
final List < Map < String , ? > > list = new ArrayList < > ( ) ; if ( ! literals . isEmpty ( ) ) { list . add ( pattern ( it -> { it . matches ( keywordRegex ( literals ) ) ; it . style ( LITERAL_STYLE ) ; it . comment ( "SARL Literals and Constants" ) ; // $ NON - NLS - 1 $ } ) ) ; } return list ;
public class A_CmsUploadDialog { /** * Starts the upload progress bar . < p > */ private void showProgress ( ) { } }
removeContent ( ) ; displayDialogInfo ( org . opencms . gwt . client . Messages . get ( ) . key ( org . opencms . gwt . client . Messages . GUI_UPLOAD_INFO_UPLOADING_0 ) , false ) ; m_selectionSummary . removeFromParent ( ) ; List < String > files = new ArrayList < String > ( getFilesToUpload ( ) . keySet ( ) ) ; Colle...
public class DateTimePatternGenerator { /** * Utility to return a unique base skeleton from a given pattern . This is * the same as the skeleton , except that differences in length are minimized * so as to only preserve the difference between string and numeric form . So * for example , both " MMM - dd " and " d ...
synchronized ( this ) { // synchronized since a getter must be thread - safe current . set ( pattern , fp , false ) ; return current . getBasePattern ( ) ; }
public class RandomNumberFunction { /** * Remove leading Zero numbers . * @ param generated * @ param paddingOn */ public static String checkLeadingZeros ( String generated , boolean paddingOn ) { } }
if ( paddingOn ) { return replaceLeadingZero ( generated ) ; } else { return removeLeadingZeros ( generated ) ; }
public class AdapterRegistry { /** * Search for an adapter . */ @ SuppressWarnings ( "unchecked" ) public < Input , Output > Adapter < Input , Output > findAdapter ( Object in , Class < Input > input , Class < Output > output ) { } }
ArrayList < Adapter > acceptInput = new ArrayList < > ( ) ; ArrayList < Adapter > matching = new ArrayList < > ( ) ; for ( Adapter a : adapters ) { if ( ! a . getInputType ( ) . isAssignableFrom ( input ) ) continue ; if ( ! a . canAdapt ( in ) ) continue ; acceptInput . add ( a ) ; if ( output . equals ( a . getOutput...
public class VectorOps_DDRB { /** * Row vector scale : < br > * scale : b < sub > i < / sub > = & alpha ; * a < sub > i < / sub > < br > * where ' a ' and ' b ' are row vectors within the row block vector A and B . * @ param A submatrix . Not modified . * @ param rowA which row in A the vector is contained in ....
final double dataA [ ] = A . original . data ; final double dataB [ ] = B . original . data ; // handle the case where offset is more than a block int startI = offset - offset % blockLength ; offset = offset % blockLength ; // handle rows in any block int rowBlockA = A . row0 + rowA - rowA % blockLength ; rowA = rowA %...
public class DataModelUtil { /** * Get the data model for the given type . * @ param < E > The entity type * @ param type The Java class of the entity type * @ return The appropriate data model for the given type */ public static < E > GenericData getDataModelForType ( Class < E > type ) { } }
// Need to check if SpecificRecord first because specific records also // implement GenericRecord if ( SpecificRecord . class . isAssignableFrom ( type ) ) { return new SpecificData ( type . getClassLoader ( ) ) ; } else if ( IndexedRecord . class . isAssignableFrom ( type ) ) { return GenericData . get ( ) ; } else { ...
public class ReaderInputStream { /** * Fills the internal char buffer from the reader . * @ throws IOException If an I / O error occurs */ private void fillBuffer ( ) throws IOException { } }
if ( ! endOfInput && ( lastCoderResult == null || lastCoderResult . isUnderflow ( ) ) ) { encoderIn . compact ( ) ; int position = encoderIn . position ( ) ; // We don ' t use Reader # read ( CharBuffer ) here because it is more efficient // to write directly to the underlying char array ( the default implementation //...
public class InMemoryStateFlowGraph { /** * Adds the specified edge to this graph , going from the source vertex to the target vertex . * More formally , adds the specified edge , e , to this graph if this graph contains no edge e2 * such that e2 . equals ( e ) . If this graph already contains such an edge , the ca...
clickable . setSource ( sourceVertex ) ; clickable . setTarget ( targetVertex ) ; writeLock . lock ( ) ; try { boolean added = sfg . addEdge ( sourceVertex , targetVertex , clickable ) ; if ( ! added ) { Set < Eventable > allEdges = sfg . getAllEdges ( sourceVertex , targetVertex ) ; for ( Eventable edge : allEdges ) {...
public class Toolbar { /** * Add a new action button to the toolbar . An action button is the kind of button that executes immediately when * clicked upon . It can not be selected or deselected , it just executes every click . * @ param action * The actual action to execute on click . */ public void addActionButt...
final IButton button = new IButton ( ) ; button . setWidth ( buttonSize ) ; button . setHeight ( buttonSize ) ; button . setIconSize ( buttonSize - WidgetLayout . toolbarStripHeight ) ; button . setIcon ( action . getIcon ( ) ) ; button . setActionType ( SelectionType . BUTTON ) ; button . addClickHandler ( action ) ; ...
public class Months { /** * Adds this amount to the specified temporal object . * This returns a temporal object of the same observable type as the input * with this amount added . * In most cases , it is clearer to reverse the calling pattern by using * { @ link Temporal # plus ( TemporalAmount ) } . * < pre...
if ( months != 0 ) { temporal = temporal . plus ( months , MONTHS ) ; } return temporal ;
public class TaskManager { /** * Main loop - - Task State Transition */ private synchronized void mainLoop ( ) { } }
for ( Task task : taskDao . listTasks ( ) ) { if ( task . getState ( ) . equals ( Task . STARTING ) ) { startTask ( task ) ; } else if ( task . getState ( ) . equals ( Task . PAUSING ) ) { pauseTask ( task ) ; } else if ( task . getState ( ) . equals ( Task . RESUMING ) ) { resumeTask ( task ) ; } else if ( task . getS...
public class ResolverComparator { /** * / * ( non - Javadoc ) * @ see java . util . Comparator # compare ( java . lang . Object , java . lang . Object ) */ @ Override public int compare ( ResourceGeneratorResolver o1 , ResourceGeneratorResolver o2 ) { } }
int result = 0 ; if ( o1 . getType ( ) . equals ( SUFFIXED ) && o2 . getType ( ) . equals ( PREFIXED ) ) { result = - 1 ; } else if ( o1 . getType ( ) . equals ( PREFIXED ) && o2 . getType ( ) . equals ( SUFFIXED ) ) { result = 1 ; } return result ;
public class ReplicaSettingsUpdate { /** * Represents the settings of a global secondary index for a global table that will be modified . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setReplicaGlobalSecondaryIndexSettingsUpdate ( java . util . Collection )...
if ( this . replicaGlobalSecondaryIndexSettingsUpdate == null ) { setReplicaGlobalSecondaryIndexSettingsUpdate ( new java . util . ArrayList < ReplicaGlobalSecondaryIndexSettingsUpdate > ( replicaGlobalSecondaryIndexSettingsUpdate . length ) ) ; } for ( ReplicaGlobalSecondaryIndexSettingsUpdate ele : replicaGlobalSecon...
public class SRTServletRequest { /** * Returns the request URI as string . */ public String getRequestURI ( ) { } }
if ( WCCustomProperties . CHECK_REQUEST_OBJECT_IN_USE ) { checkRequestObjectInUse ( ) ; } // Begin PK06988 , strip session id of when url rewriting is enabled SRTServletRequestThreadData reqData = SRTServletRequestThreadData . getInstance ( ) ; if ( reqData != null && reqData . getRequestURI ( ) == null ) { String aURI...
public class StripeNetworkUtils { /** * A utility function to map the fields of a { @ link Card } object into a { @ link Map } we * can use in network communications . * @ param card the { @ link Card } to be read * @ return a { @ link Map } containing the appropriate values read from the card */ @ NonNull Map < ...
final Map < String , Object > tokenParams = new HashMap < > ( ) ; final AbstractMap < String , Object > cardParams = new HashMap < > ( ) ; cardParams . put ( "number" , StripeTextUtils . nullIfBlank ( card . getNumber ( ) ) ) ; cardParams . put ( "cvc" , StripeTextUtils . nullIfBlank ( card . getCVC ( ) ) ) ; cardParam...
public class AbstractIoSession { /** * TODO Add method documentation */ public final void increaseReadMessages ( long currentTime ) { } }
readMessages ++ ; lastReadTime = currentTime ; idleCountForBoth . set ( 0 ) ; idleCountForRead . set ( 0 ) ; if ( getService ( ) instanceof AbstractIoService ) { getService ( ) . getStatistics ( ) . increaseReadMessages ( currentTime ) ; }
public class StringHelper { /** * / * public static boolean containsDigits ( String string ) { * for ( int i = 0 ; i < string . length ( ) ; i + + ) { * if ( Character . isDigit ( string . charAt ( i ) ) ) return true ; * return false ; */ public static int lastIndexOfLetter ( String string ) { } }
for ( int i = 0 ; i < string . length ( ) ; i ++ ) { char character = string . charAt ( i ) ; // Include " _ " . See HHH - 8073 if ( ! Character . isLetter ( character ) && ! ( '_' == character ) ) return i - 1 ; } return string . length ( ) - 1 ;
public class AzkabanJobLauncher { /** * Add additional properties such as flow . group , flow . name , executionUrl . Useful for tracking * job executions on Azkaban triggered by Gobblin - as - a - Service ( GaaS ) . * @ param jobProps job properties * @ return a list of tags uniquely identifying a job execution ...
List < Tag < ? > > metadataTags = Lists . newArrayList ( ) ; String jobExecutionId = jobProps . getProperty ( AZKABAN_FLOW_EXEC_ID , "" ) ; String jobExecutionUrl = jobProps . getProperty ( AZKABAN_LINK_JOBEXEC_URL , "" ) ; metadataTags . add ( new Tag < > ( TimingEvent . FlowEventConstants . FLOW_GROUP_FIELD , jobProp...
public class XmlUtil { /** * 对象转xml * @ param object * @ return */ public static String toXml ( Object object ) { } }
if ( object == null ) { throw new NullPointerException ( "object对象不存在!" ) ; } JAXBContext jc = null ; Marshaller m = null ; String xml = null ; try { jc = JAXBContext . newInstance ( object . getClass ( ) ) ; m = jc . createMarshaller ( ) ; ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; m . marshal ( objec...
public class CallableStatementHandle { /** * { @ inheritDoc } * @ see java . sql . CallableStatement # setNull ( java . lang . String , int ) */ public void setNull ( String parameterName , int sqlType ) throws SQLException { } }
checkClosed ( ) ; try { this . internalCallableStatement . setNull ( parameterName , sqlType ) ; if ( this . logStatementsEnabled ) { this . logParams . put ( parameterName , PoolUtil . safePrint ( "[SQL NULL type " , sqlType , "]" ) ) ; } } catch ( SQLException e ) { throw this . connectionHandle . markPossiblyBroken ...
public class DJXYLineChartBuilder { /** * Adds the specified serie column to the dataset with custom label . * @ param column the serie column * @ param label column the custom label */ public DJXYLineChartBuilder addSerie ( AbstractColumn column , String label ) { } }
getDataset ( ) . addSerie ( column , label ) ; return this ;
public class FavoritesInner { /** * Get a single favorite by its FavoriteId , defined within an Application Insights component . * @ param resourceGroupName The name of the resource group . * @ param resourceName The name of the Application Insights component resource . * @ param favoriteId The Id of a specific f...
return getWithServiceResponseAsync ( resourceGroupName , resourceName , favoriteId ) . map ( new Func1 < ServiceResponse < ApplicationInsightsComponentFavoriteInner > , ApplicationInsightsComponentFavoriteInner > ( ) { @ Override public ApplicationInsightsComponentFavoriteInner call ( ServiceResponse < ApplicationInsig...
public class Counters { /** * Returns a Counter which is a weighted average of c1 and c2 . Counts from c1 * are weighted with weight w1 and counts from c2 are weighted with w2. */ public static < E > Counter < E > linearCombination ( Counter < E > c1 , double w1 , Counter < E > c2 , double w2 ) { } }
Counter < E > result = c1 . getFactory ( ) . create ( ) ; for ( E o : c1 . keySet ( ) ) { result . incrementCount ( o , c1 . getCount ( o ) * w1 ) ; } for ( E o : c2 . keySet ( ) ) { result . incrementCount ( o , c2 . getCount ( o ) * w2 ) ; } return result ;
public class Normalizer { /** * Normalize the character sequence < code > src < / code > according to the * normalization method < code > form < / code > . * @ param src character sequence to read for normalization * @ param form normalization form * @ return string normalized according to < code > form < / cod...
switch ( form ) { case NFD : return normalizeNFD ( src . toString ( ) ) ; case NFC : return normalizeNFC ( src . toString ( ) ) ; case NFKD : return normalizeNFKD ( src . toString ( ) ) ; case NFKC : return normalizeNFKC ( src . toString ( ) ) ; default : throw new AssertionError ( "unknown Form: " + form ) ; }
public class CalendarPanel { /** * labelIndicatorMouseExited , This event is called when the user move the mouse outside of a * monitored label . This is used to generate mouse over effects for the calendar panel . */ private void labelIndicatorMouseExited ( MouseEvent e ) { } }
JLabel label = ( ( JLabel ) e . getSource ( ) ) ; labelIndicatorSetColorsToDefaultState ( label ) ;
public class SVGParser { /** * Parse a rendering quality property */ private static RenderQuality parseRenderQuality ( String val ) { } }
switch ( val ) { case "auto" : return RenderQuality . auto ; case "optimizeQuality" : return RenderQuality . optimizeQuality ; case "optimizeSpeed" : return RenderQuality . optimizeSpeed ; default : return null ; }
public class ConsoleMenu { /** * Generates a menu with a list of options and return the value selected . * @ param title * for the command line * @ param optionNames * name for each option * @ param optionValues * value for each option * @ return String as selected by the user of the console app */ public...
if ( optionNames . length != optionValues . length ) { throw new IllegalArgumentException ( "option names and values must have same length" ) ; } ConsoleMenu . println ( "Please chose " + title + DEFAULT_TITLE + defaultOption + ")" ) ; for ( int i = 0 ; i < optionNames . length ; i ++ ) { ConsoleMenu . println ( i + 1 ...
public class AWSSecretsManagerClient { /** * Cancels the scheduled deletion of a secret by removing the < code > DeletedDate < / code > time stamp . This makes the * secret accessible to query once again . * < b > Minimum permissions < / b > * To run this command , you must have the following permissions : * < ...
request = beforeClientExecution ( request ) ; return executeRestoreSecret ( request ) ;
public class Configuration { /** * Add a trailing file separator , if not found . Remove superfluous * file separators if any . Preserve the front double file separator for * UNC paths . * @ param path Path under consideration . * @ return String Properly constructed path string . */ public static String addTra...
String fs = System . getProperty ( "file.separator" ) ; String dblfs = fs + fs ; int indexDblfs ; while ( ( indexDblfs = path . indexOf ( dblfs , 1 ) ) >= 0 ) { path = path . substring ( 0 , indexDblfs ) + path . substring ( indexDblfs + fs . length ( ) ) ; } if ( ! path . endsWith ( fs ) ) path += fs ; return path ;
public class Predicates { /** * Returns a predicate that evaluates to { @ code true } if the class being tested is assignable * < b > TO < / b > { @ code clazz } , that is , if it is a < b > subtype < / b > of { @ code clazz } . Yes , this method * is named very incorrectly ! Example : < pre > { @ code * List < C...
return subtypeOf ( clazz ) ;
public class AWSsignerClient { /** * Returns information on a specific signing profile . * @ param getSigningProfileRequest * @ return Result of the GetSigningProfile operation returned by the service . * @ throws ResourceNotFoundException * A specified resource could not be found . * @ throws AccessDeniedExc...
request = beforeClientExecution ( request ) ; return executeGetSigningProfile ( request ) ;
public class TableInput { /** * These key - value pairs define properties associated with the table . * @ param parameters * These key - value pairs define properties associated with the table . * @ return Returns a reference to this object so that method calls can be chained together . */ public TableInput withP...
setParameters ( parameters ) ; return this ;
public class Closer { /** * Stores the given throwable and rethrows it . It will be rethrown as is if it is an * { @ code IOException } , { @ code RuntimeException } or { @ code Error } . Otherwise , it will be rethrown * wrapped in a { @ code RuntimeException } . < b > Note : < / b > Be sure to declare all of the ...
Preconditions . checkNotNull ( e ) ; thrown = e ; Throwables . propagateIfPossible ( e , IOException . class ) ; throw new RuntimeException ( e ) ;
public class LTieFltConsumerBuilder { /** * One of ways of creating builder . This might be the only way ( considering all _ functional _ builders ) that might be utilize to specify generic params only once . */ @ Nonnull public static < T > LTieFltConsumerBuilder < T > tieFltConsumer ( Consumer < LTieFltConsumer < T >...
return new LTieFltConsumerBuilder ( consumer ) ;
public class FaceRecordMarshaller { /** * Marshall the given parameter object . */ public void marshall ( FaceRecord faceRecord , ProtocolMarshaller protocolMarshaller ) { } }
if ( faceRecord == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( faceRecord . getFace ( ) , FACE_BINDING ) ; protocolMarshaller . marshall ( faceRecord . getFaceDetail ( ) , FACEDETAIL_BINDING ) ; } catch ( Exception e ) { throw new SdkCli...
public class SRTP { /** * Starts a new SRTP Session , using the preset master key and salt to * generate the session keys * @ return error code */ public int startNewSession ( ) { } }
if ( txSessEncKey != null ) return SESSION_ERROR_ALREADY_ACTIVE ; if ( ( txMasterSalt == null ) || ( rxMasterSalt == null ) ) return SESSION_ERROR_MASTER_SALT_UDNEFINED ; if ( ( txMasterKey == null ) || ( rxMasterKey == null ) ) return SESSION_ERROR_MASTER_SALT_UDNEFINED ; if ( ! txSessionKeyDerivation ( ) ) { log ( "s...
public class Sequential { /** * Iterates through the subscribers , considering the type hierarchy , and * invokes the receiveO method . * @ param p * - The publish object . * @ return If a message was published to at least one subscriber , then it * will return true . Otherwise , false . */ private boolean co...
boolean sent = false ; for ( Entry < Class < ? > , List < SubscriberParent > > e : p . mapping . entrySet ( ) ) { if ( e . getKey ( ) . isAssignableFrom ( p . message . getClass ( ) ) ) { for ( SubscriberParent parent : e . getValue ( ) ) { if ( ! predicateApplies ( parent . getSubscriber ( ) , p . message ) ) { contin...
public class GoogleMapsUrlSigner { /** * Converts the given private key as String to an base 64 encoded byte array . * @ param yourGooglePrivateKeyString * the google private key as String * @ return the base 64 encoded byte array . */ public static byte [ ] convertToKeyByteArray ( String yourGooglePrivateKeyStri...
yourGooglePrivateKeyString = yourGooglePrivateKeyString . replace ( '-' , '+' ) ; yourGooglePrivateKeyString = yourGooglePrivateKeyString . replace ( '_' , '/' ) ; return Base64 . getDecoder ( ) . decode ( yourGooglePrivateKeyString ) ;
public class ReadSerialDiagnosticsResponse { /** * readData - - Read the function code and data value * @ throws java . io . IOException If the data cannot be read */ public void readData ( DataInput din ) throws IOException { } }
function = din . readUnsignedShort ( ) ; data = ( short ) ( din . readShort ( ) & 0xFFFF ) ;
public class ControlMessageImpl { /** * Set the unique StreamId used by the flush protocol to determine * whether a stream is active or flushed . * Javadoc description supplied by CommonMessageHeaders interface . */ public final void setGuaranteedStreamUUID ( SIBUuid12 value ) { } }
if ( value != null ) jmo . setField ( ControlAccess . STREAMUUID , value . toByteArray ( ) ) ; else jmo . setField ( ControlAccess . STREAMUUID , null ) ;
public class CreateRule { /** * The time , in UTC , to start the operation . * The operation occurs within a one - hour window following the specified time . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setTimes ( java . util . Collection ) } or { @ link...
if ( this . times == null ) { setTimes ( new java . util . ArrayList < String > ( times . length ) ) ; } for ( String ele : times ) { this . times . add ( ele ) ; } return this ;
public class Policies { /** * The policies other than the stickiness policies . * @ param otherPolicies * The policies other than the stickiness policies . */ public void setOtherPolicies ( java . util . Collection < String > otherPolicies ) { } }
if ( otherPolicies == null ) { this . otherPolicies = null ; return ; } this . otherPolicies = new com . amazonaws . internal . SdkInternalList < String > ( otherPolicies ) ;
public class TableFormatter { /** * Writes the table to a resource . * @ param resource the resource to write to * @ return the resource written to * @ throws IOException Something went wrong writing to the resource */ public Resource write ( @ NonNull Resource resource ) throws IOException { } }
Resource stringResource = new StringResource ( ) ; try ( PrintStream printStream = new PrintStream ( stringResource . outputStream ( ) ) ) { print ( printStream ) ; } resource . write ( stringResource . readToString ( ) ) ; return resource ;
public class BlockReader { /** * Java Doc required */ public static BlockReader newBlockReader ( int dataTransferVersion , int namespaceId , Socket sock , String file , long blockId , long genStamp , long startOffset , long len , int bufferSize , boolean verifyChecksum ) throws IOException { } }
return newBlockReader ( dataTransferVersion , namespaceId , sock , file , blockId , genStamp , startOffset , len , bufferSize , verifyChecksum , "" , Long . MAX_VALUE , - 1 , false , null , new ReadOptions ( ) ) ;
public class BindParameterMapperManager { /** * 指定されたパラメータをPreparedStatementにセットするパラメータに変換 * @ param object 指定パラメータ * @ param connection パラメータ生成用にConnectionを渡す * @ return PreparedStatementにセットするパラメータ */ @ SuppressWarnings ( "unchecked" ) public Object toJdbc ( final Object object , final Connection connectio...
if ( object == null ) { return null ; } for ( @ SuppressWarnings ( "rawtypes" ) BindParameterMapper parameterMapper : mappers ) { if ( parameterMapper . canAccept ( object ) ) { return parameterMapper . toJdbc ( object , connection , this ) ; } } if ( object instanceof Boolean || object instanceof Byte || object instan...
public class InjectionEngineAccessor { /** * F46994.2 */ static void setInjectionEngine ( InternalInjectionEngine ie ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setInjectionEngine : " + ie ) ; svInstance = ie ;
public class SQLMultiScopeRecoveryLog { /** * Attempts to replay the cached up SQL work if an error is * encountered during open log processing and if the error is * determined to be transient . * @ return true if the error cannot be handled and should be * reported . */ private boolean handleOpenLogSQLExceptio...
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "handleOpenLogSQLException" , new java . lang . Object [ ] { sqlex , this } ) ; boolean retryBatch = true ; boolean failAndReport = false ; int batchRetries = 0 ; // Set the exception that will be reported _nonTransientExceptionAtOpen = sqlex ; Connection conn = null ; w...
public class AlexaRequestStreamHandler { /** * The handler method is called on a Lambda execution . * @ param input the input stream containing the Lambda request payload * @ param output the output stream containing the Lambda response payload * @ param context a context for a Lambda execution . * @ throws IOE...
byte [ ] serializedSpeechletRequest = IOUtils . toByteArray ( input ) ; final AlexaSpeechlet speechlet = AlexaSpeechletFactory . createSpeechletFromRequest ( serializedSpeechletRequest , getSpeechlet ( ) , getUtteranceReader ( ) ) ; final SpeechletRequestHandler handler = getRequestStreamHandler ( ) ; try { byte [ ] ou...
public class SibRaConnection { /** * Receives a message . Checks that the connection is valid . Maps the * transaction parameter before delegating . * @ param tran * the transaction to receive the message under * @ param unrecoverableReliability * the unrecoverable reliability * @ param destinationAddress ...
checkValid ( ) ; return _delegateConnection . receiveNoWait ( mapTransaction ( tran ) , unrecoverableReliability , destinationAddress , destType , criteria , reliability , alternateUser ) ;
public class LineBufferedReader { /** * Returns the current line in the buffer . Or empty string if not usable . * @ return The line string , not including the line - break . */ @ Nonnull public String getLine ( ) { } }
if ( preLoaded ) { if ( bufferOffset >= 0 ) { int lineStart = bufferOffset ; if ( linePos > 0 ) { lineStart -= linePos - 1 ; } int lineEnd = bufferOffset ; while ( lineEnd < bufferLimit && buffer [ lineEnd ] != '\n' ) { ++ lineEnd ; } return new String ( buffer , lineStart , lineEnd - lineStart ) ; } } else if ( buffer...
public class Exceptional { /** * Returns inner value if there were no exceptions , otherwise returns value produced by supplier function . * @ param other the supplier function that produces value if there were any exception * @ return inner value if there were no exceptions , otherwise value produced by supplier f...
return throwable == null ? value : other . get ( ) ;
public class DAO { /** * / * - - - - - [ Delete ] - - - - - */ public int delete ( String query , Object ... args ) throws DAOException { } }
if ( query == null ) query = "" ; return jdbc . executeUpdate ( "DELETE FROM " + table . name + " " + query , args ) ;
public class WebJsptaglibraryDescriptorImpl { /** * If not already created , a new < code > function < / code > element will be created and returned . * Otherwise , the first existing < code > function < / code > element will be returned . * @ return the instance defined for the element < code > function < / code >...
List < Node > nodeList = model . get ( "function" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new FunctionTypeImpl < WebJsptaglibraryDescriptor > ( this , "function" , model , nodeList . get ( 0 ) ) ; } return createFunction ( ) ;
public class AudioWife { /** * Sets the audio play functionality on click event of this view . You can set { @ link android . widget . Button } or * an { @ link android . widget . ImageView } as audio play control * @ see nl . changer . audiowife . AudioWife # addOnPauseClickListener ( android . view . View . OnCli...
if ( play == null ) { throw new NullPointerException ( "PlayView cannot be null" ) ; } if ( mHasDefaultUi ) { Log . w ( TAG , "Already using default UI. Setting play view will have no effect" ) ; return this ; } mPlayButton = play ; initOnPlayClick ( ) ; return this ;
public class DividableGridAdapter { /** * Returns , whether the item at a specific index is enabled , or not . * @ param index * The index of the item , which should be checked , as an { @ link Integer } value * @ return True , if the item is enabled , false otherwise */ public final boolean isItemEnabled ( final...
AbstractItem item = items . get ( index ) ; return item instanceof Item && ( ( Item ) item ) . isEnabled ( ) ;
public class CustomFieldContainer { /** * When an alias for a field is added , index it here to allow lookup by alias and type . * @ param type field type * @ param alias field alias */ void registerAlias ( FieldType type , String alias ) { } }
m_aliasMap . put ( new Pair < FieldTypeClass , String > ( type . getFieldTypeClass ( ) , alias ) , type ) ;
public class FVVisitor { /** * Get the parameters types from the function signature . * @ return An array of parameter class names */ private String [ ] getParameters ( ELNode . Function func ) throws JspTranslationException { } }
FunctionInfo funcInfo = func . getFunctionInfo ( ) ; String signature = funcInfo . getFunctionSignature ( ) ; ArrayList params = new ArrayList ( ) ; // Signature is of the form // < return - type > S < method - name S ? ' ( ' // < < arg - type > ( ' , ' < arg - type > ) * ) ? ' ) ' int start = signature . indexOf ( '('...
public class ConversationAwareViewHandler { /** * Allow the delegate to produce the action URL . If the conversation is * long - running , append the conversation id request parameter to the query * string part of the URL , but only if the request parameter is not already * present . * This covers form actions ...
if ( contextId == null ) { if ( facesContext . getAttributes ( ) . containsKey ( Container . CONTEXT_ID_KEY ) ) { contextId = ( String ) facesContext . getAttributes ( ) . get ( Container . CONTEXT_ID_KEY ) ; } else { contextId = RegistrySingletonProvider . STATIC_INSTANCE ; } } String actionUrl = super . getActionURL ...
public class TypeExtractionUtils { /** * Checks whether the given type has the generic parameters declared in the class definition . * @ param t type to be validated */ public static void validateLambdaType ( Class < ? > baseClass , Type t ) { } }
if ( ! ( t instanceof Class ) ) { return ; } final Class < ? > clazz = ( Class < ? > ) t ; if ( clazz . getTypeParameters ( ) . length > 0 ) { throw new InvalidTypesException ( "The generic type parameters of '" + clazz . getSimpleName ( ) + "' are missing. " + "In many cases lambda methods don't provide enough informa...
public class Branch { /** * - - - - - Content Indexing methods - - - - - / / */ public void registerView ( BranchUniversalObject branchUniversalObject , BranchUniversalObject . RegisterViewStatusListener callback ) { } }
if ( context_ != null ) { new BranchEvent ( BRANCH_STANDARD_EVENT . VIEW_ITEM ) . addContentItems ( branchUniversalObject ) . logEvent ( context_ ) ; }
public class AbstractFlagEncoder { /** * Sets default flags with specified access . */ protected void flagsDefault ( IntsRef edgeFlags , boolean forward , boolean backward ) { } }
if ( forward ) speedEncoder . setDecimal ( false , edgeFlags , speedDefault ) ; if ( backward ) speedEncoder . setDecimal ( true , edgeFlags , speedDefault ) ; accessEnc . setBool ( false , edgeFlags , forward ) ; accessEnc . setBool ( true , edgeFlags , backward ) ;
public class SolverAggregatorConnection { /** * Called when the aggregator sends a sample . Enqueues the sample into the internal buffer . * @ param aggregator the aggregator that sent the sample . * @ param sample the sample that was sent . */ void sampleReceived ( SolverAggregatorInterface aggregator , SampleMess...
if ( ! this . sampleQueue . offer ( sample ) && this . warnBufferFull ) { log . warn ( "Unable to insert a sample due to a full buffer." ) ; }
public class MembershipHandlerImpl { /** * Remove membership record . */ void removeMembership ( Node refUserNode , Node refTypeNode ) throws Exception { } }
refTypeNode . remove ( ) ; if ( ! refUserNode . hasNodes ( ) ) { refUserNode . remove ( ) ; }
public class TypeConversion { /** * A utility method to convert the int from the byte array to an int . * @ param bytes * The byte array containing the int . * @ param offset * The index at which the int is located . * @ return The int value . */ public static int bytesToInt ( byte [ ] bytes , int offset ) { ...
return ( ( bytes [ offset + 3 ] & 0xFF ) << 0 ) + ( ( bytes [ offset + 2 ] & 0xFF ) << 8 ) + ( ( bytes [ offset + 1 ] & 0xFF ) << 16 ) + ( ( bytes [ offset + 0 ] & 0xFF ) << 24 ) ;
public class TextRankSentence { /** * 将句子列表转化为文档 * @ param sentenceList * @ return */ private static List < List < String > > convertSentenceListToDocument ( List < String > sentenceList ) { } }
List < List < String > > docs = new ArrayList < List < String > > ( sentenceList . size ( ) ) ; for ( String sentence : sentenceList ) { List < Term > termList = StandardTokenizer . segment ( sentence . toCharArray ( ) ) ; List < String > wordList = new LinkedList < String > ( ) ; for ( Term term : termList ) { if ( Co...
public class CellGridImpl { /** * / * ( non - Javadoc ) * @ see org . drools . examples . conway . CellGrid # setPattern ( org . drools . examples . conway . patterns . ConwayPattern ) */ public void setPattern ( final ConwayPattern pattern ) { } }
final boolean [ ] [ ] gridData = pattern . getPattern ( ) ; int gridWidth = gridData [ 0 ] . length ; int gridHeight = gridData . length ; int columnOffset = 0 ; int rowOffset = 0 ; if ( gridWidth > getNumberOfColumns ( ) ) { gridWidth = getNumberOfColumns ( ) ; } else { columnOffset = ( getNumberOfColumns ( ) - gridWi...
public class BasicStreamReader { /** * Method called to parse quoted xml declaration pseudo - attribute values . * Works similar to attribute value parsing , except no entities can be * included , and in general need not be as picky ( since caller is to * verify contents ) . One exception is that we do check for ...
if ( quoteChar != '"' && quoteChar != '\'' ) { throwUnexpectedChar ( quoteChar , " in xml declaration; waited ' or \" to start a value for pseudo-attribute '" + name + "'" ) ; } char [ ] outBuf = tbuf . getCurrentSegment ( ) ; int outPtr = 0 ; while ( true ) { char c = ( mInputPtr < mInputEnd ) ? mInputBuffer [ mInputP...