All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jdroid.github.Blob Maven / Gradle / Ivy

There is a newer version: 0.9.4
Show newest version
/******************************************************************************
 *  Copyright (c) 2011 GitHub Inc.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *    Kevin Sawicki (GitHub Inc.) - initial API and implementation
 *****************************************************************************/
package com.jdroid.github;

import java.io.Serializable;

/**
 * Blob model class
 */
public class Blob implements Serializable {

	/** serialVersionUID */
	private static final long serialVersionUID = -7538850340225102994L;

	/**
	 * ENCODING_BASE64
	 */
	public static final String ENCODING_BASE64 = "base64"; //$NON-NLS-1$

	/**
	 * ENCODING_UTF8
	 */
	public static final String ENCODING_UTF8 = "utf-8"; //$NON-NLS-1$

	private String content;

	private String encoding;

	/**
	 * @return content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 * @return this blob
	 */
	public Blob setContent(String content) {
		this.content = content;
		return this;
	}

	/**
	 * @return encoding
	 */
	public String getEncoding() {
		return encoding;
	}

	/**
	 * @param encoding
	 * @return this blob
	 */
	public Blob setEncoding(String encoding) {
		this.encoding = encoding;
		return this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy