Code example for ByteArrayOutputStream

Methods: size, toString

0
		@Override 
		public void run() 
		{ 
			Thread.currentThread().setName("Support Queryer");
			 
			ByteArrayOutputStream baos = new ByteArrayOutputStream(10000);
			 
			List<PIDParameter> lst = GetSupportedPIDS(m_strBTName, baos);
			if(baos.size() > 0)
			{ 
				m_pCallback.NotifyOBD2Error(baos.toString());
			} 
			m_pCallback.NotifyPIDSupport(lst);
			 
		} 
	} 
	private static List<PIDParameter> GetSupportedPIDS(String strBTName, OutputStream errorOut)
	{ 
		boolean fSuccess = true;
		List<PIDParameter> lstRet = null;