public static String validateUserStreamName ( String name ) { Preconditions . checkNotNull ( name ) ; Preconditions . checkArgument ( name . matches ( "[\\p{Alnum}\\.\\-]+" ) , "Name must be a-z, 0-9, ., -." ) ; return name ; }
Validates a user created stream name .