Sha256: 1fd17743b6c7978292e1f365952d2b71f313ecc5222a915b3eece014ed26d5a7
Contents?: true
Size: 1.55 KB
Versions: 172
Compression:
Stored size: 1.55 KB
Contents
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.zxing.client.result; /** * @author Sean Owen */ public final class EmailAddressParsedResult extends ParsedResult { private final String emailAddress; private final String subject; private final String body; private final String mailtoURI; EmailAddressParsedResult(String emailAddress, String subject, String body, String mailtoURI) { super(ParsedResultType.EMAIL_ADDRESS); this.emailAddress = emailAddress; this.subject = subject; this.body = body; this.mailtoURI = mailtoURI; } public String getEmailAddress() { return emailAddress; } public String getSubject() { return subject; } public String getBody() { return body; } public String getMailtoURI() { return mailtoURI; } public String getDisplayResult() { StringBuffer result = new StringBuffer(30); maybeAppend(emailAddress, result); maybeAppend(subject, result); maybeAppend(body, result); return result.toString(); } }
Version data entries
172 entries across 111 versions & 2 rubygems